home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / internet-drafts / draft-ietf-pppext-lcp-main-00.txt < prev    next >
Text File  |  1993-07-30  |  115KB  |  3,522 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                        W A Simpson
  8. Internet Draft                                                Daydreamer
  9. expires in six months                                          July 1993
  10.  
  11.  
  12.                    The Point-to-Point Protocol (PPP)
  13.  
  14.  
  15.  
  16. Status of this Memo
  17.  
  18.    This document is the product of the Point-to-Point Protocol Working
  19.    Group of the Internet Engineering Task Force (IETF).  Comments should
  20.    be submitted to the ietf-ppp@ucdavis.edu mailing list.
  21.  
  22.    Distribution of this memo is unlimited.
  23.  
  24.    This document is an Internet Draft.  Internet Drafts are working
  25.    documents of the Internet Engineering Task Force (IETF), its Areas,
  26.    and its Working Groups.  Note that other groups may also distribute
  27.    working documents as Internet Drafts.
  28.  
  29.    Internet Drafts are draft documents valid for a maximum of six
  30.    months.  Internet Drafts may be updated, replaced, or obsoleted by
  31.    other documents at any time.  It is not appropriate to use Internet
  32.    Drafts as reference material or to cite them other than as a
  33.    ``working draft'' or ``work in progress.''
  34.  
  35.    Please check the 1id-abstracts.txt listing contained in the
  36.    internet-drafts Shadow Directories on nic.ddn.mil, nnsc.nsf.net,
  37.    nic.nordu.net, ftp.nisc.sri.com, or munnari.oz.au to learn the
  38.    current status of any Internet Draft.
  39.  
  40. Abstract
  41.  
  42.    The Point-to-Point Protocol (PPP) provides a method for transmitting
  43.    multi-protocol datagrams over point-to-point links.  PPP is comprised   !
  44.    of three main components:
  45.  
  46.       1. A method for encapsulating multi-protocol datagrams.              !
  47.  
  48.       2. A Link Control Protocol (LCP) for establishing, configuring,
  49.          and testing the data-link connection.
  50.  
  51.       3. A family of Network Control Protocols (NCPs) for establishing
  52.          and configuring different network-layer protocols.
  53.  
  54.    This document defines the PPP organization and methodology, together    !
  55.  
  56.  
  57.  
  58. Simpson                  expires in six months                  [Page i]
  59. DRAFT                   Point-to-Point Protocol                July 1993
  60.  
  61.  
  62.    with the PPP Link Control Protocol (LCP), an extensible option
  63.    negotiation protocol which is able to negotiate a rich assortment of
  64.    configuration parameters and provides additional management
  65.    functions.
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Simpson                  expires in six months                 [Page ii]
  114. DRAFT                   Point-to-Point Protocol                July 1993
  115.  
  116.  
  117. 1.  Introduction
  118.  
  119.    Motivation
  120.  
  121.       In the last few years, the Internet has seen explosive growth in
  122.       the number of hosts supporting TCP/IP.  The vast majority of these
  123.       hosts are connected to Local Area Networks (LANs) of various
  124.       types, Ethernet being the most common.  Most of the other hosts
  125.       are connected through Wide Area Networks (WANs) such as X.25 style
  126.       Public Data Networks (PDNs).  Relatively few of these hosts are
  127.       connected with simple point-to-point links.  Yet, point-to-point     !
  128.       serial links are among the oldest methods of data communications,    !
  129.       and almost every host supports point-to-point connections.  For
  130.       example, asynchronous RS-232-C [1] interfaces are essentially
  131.       ubiquitous.
  132.  
  133.    Encapsulation
  134.  
  135.       One reason for the small number of point-to-point IP links is the
  136.       lack of a standard encapsulation protocol.  There are plenty of
  137.       non-standard (and at least one de facto standard) encapsulation
  138.       protocols available, but there is not one which has been agreed
  139.       upon as an Internet Standard.  By contrast, standard encapsulation
  140.       schemes do exist for the transmission of datagrams over most
  141.       popular LANs.
  142.  
  143.       The PPP encapsulation provides for multiplexing of different         !
  144.       network-layer protocols simultaneously over the same link.  It is
  145.       intended that PPP provide a common solution for easy connection of
  146.       a wide variety of hosts, bridges and routers.
  147.  
  148.       The PPP encapsulation has been carefully designed to retain
  149.       compatibility with most commonly used supporting hardware.
  150.  
  151.       By default, when used with HDLC framing, only 8 additional octets    !
  152.       are necessary to form the encapsulation.  In environments where
  153.       bandwidth is at a premium, the encapsulation may be shortened to
  154.       as few as 2 octets.  To support high speed hardware
  155.       implementations, PPP provides that the default encapsulation
  156.       header and information fields fall on 32-bit boundaries, and
  157.       allows the trailer to be padded to an arbitrary boundary.
  158.  
  159.    Link Control Protocol
  160.  
  161.       In order to be sufficiently versatile to be portable to a wide
  162.       variety of environments, PPP provides a Link Control Protocol
  163.       (LCP).  The LCP is used to automatically agree upon the
  164.       encapsulation format options, handle varying limits on sizes of
  165.  
  166.  
  167.  
  168. Simpson                  expires in six months                  [Page 1]
  169. DRAFT                   Point-to-Point Protocol                July 1993
  170.  
  171.  
  172.       packets, authenticate the identity of its peer on the link,
  173.       determine when a link is functioning properly and when it is
  174.       defunct, detect a looped-back link and other common
  175.       misconfiguration errors, and terminate the link.
  176.  
  177.    Network Control Protocols
  178.  
  179.       Point-to-Point links tend to exacerbate many problems with the
  180.       current family of network protocols.  For instance, assignment and
  181.       management of IP addresses, which is a problem even in LAN
  182.       environments, is especially difficult over circuit-switched
  183.       point-to-point links (such as dial-up modem servers).  These
  184.       problems are handled by a family of Network Control Protocols
  185.       (NCPs), which each manage the specific needs required by their
  186.       respective network-layer protocols.  These NCPs are defined in
  187.       companion documents.                                                 !
  188.  
  189.    Configuration
  190.  
  191.       It is intended that PPP links be easy to configure.  By design,      !
  192.       the standard defaults handle all common configurations.  The         !
  193.       implementor can specify improvements to the default configuration,
  194.       which are automatically communicated to the peer without operator
  195.       intervention.  Finally, the operator may explicitly configure
  196.       options for the link which enable the link to operate in
  197.       environments where it would otherwise be impossible.
  198.  
  199.       This self-configuration is implemented through an extensible
  200.       option negotiation mechanism, wherein each end of the link
  201.       describes to the other its capabilities and requirements.
  202.       Although the option negotiation mechanism described in this
  203.       document is specified in terms of the Link Control Protocol (LCP),
  204.       the same facilities are designed to be used by other control         !
  205.       protocols, especially the family of NCPs.                            !
  206.  
  207.  
  208. 1.1.  Specification of Requirements
  209.  
  210.    In this document, several words are used to signify the requirements
  211.    of the specification.  These words are often capitalized.
  212.  
  213.    MUST      This word, or the adjective "required", means that the
  214.              definition is an absolute requirement of the specification.
  215.  
  216.    MUST NOT  This phrase means that the definition is an absolute
  217.              prohibition of the specification.
  218.  
  219.    SHOULD    This word, or the adjective "recommended", means that there
  220.  
  221.  
  222.  
  223. Simpson                  expires in six months                  [Page 2]
  224. DRAFT                   Point-to-Point Protocol                July 1993
  225.  
  226.  
  227.              may exist valid reasons in particular circumstances to
  228.              ignore this item, but the full implications must be
  229.              understood and carefully weighed before choosing a
  230.              different course.
  231.  
  232.    MAY       This word, or the adjective "optional", means that this
  233.              item is one of an allowed set of alternatives.  An
  234.              implementation which does not include this option MUST be
  235.              prepared to interoperate with another implementation which
  236.              does include the option.
  237.  
  238.  
  239. 1.2.  Terminology
  240.  
  241.    This document frequently uses the following terms:
  242.  
  243.    peer      The other end of the point-to-point link.
  244.  
  245.    silently discard
  246.              This means the implementation discards the packet without
  247.              further processing.  The implementation SHOULD provide the
  248.              capability of logging the error, including the contents of
  249.              the silently discarded packet, and SHOULD record the event
  250.              in a statistics counter.
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Simpson                  expires in six months                  [Page 3]
  279. DRAFT                   Point-to-Point Protocol                July 1993
  280.  
  281.  
  282. 2.  PPP Encapsulation
  283.  
  284.    The PPP encapsulation is used to disambiguate multiprotocol             !
  285.    datagrams.  This encapsulation requires framing to indicate the         !
  286.    beginning and end of the encapsulation.  Methods of providing framing   !
  287.    are specified in companion documents.                                   !
  288.  
  289.    A summary of the PPP encapsulation is shown below.  The fields are      !
  290.    transmitted from left to right.
  291.  
  292.            +----------+-------------+---------+                            !
  293.            | Protocol | Information | Padding |                            !
  294.            | 16 bits  |      *      |    *    |                            !
  295.            +----------+-------------+---------+                            !
  296.  
  297.  
  298.    Protocol Field
  299.  
  300.       The Protocol field is two octets and its value identifies the
  301.       protocol encapsulated in the Information field of the frame.  The    !
  302.       field is transmitted and received most significant octet first.      !
  303.  
  304.       The structure of this field is consistent with the ISO 3309          !
  305.       extension mechanism for address fields.  All Protocols MUST be
  306.       odd; the least significant bit of the least significant octet MUST
  307.       equal "1".  Also, all Protocols MUST be assigned such that the
  308.       least significant bit of the most significant octet equals "0".
  309.       Frames received which don't comply with these rules MUST be
  310.       treated as having an unrecognized Protocol.                          !
  311.  
  312.       Protocol field values in the "0***" to "3***" range identify the     !
  313.       network-layer protocol of specific datagrams, and values in the
  314.       "8***" to "b***" range identify datagrams belonging to the           !
  315.       associated Network Control Protocols (NCPs), if any.
  316.  
  317.       Protocol field values in the "4***" to "7***" range are used for     !
  318.       protocols with low volume traffic which have no associated NCP.
  319.       Protocol field values in the "c***" to "f***" range identify         !
  320.       datagrams as link-layer Control Protocols (such as LCP).
  321.  
  322.       Up-to-date values of the Protocol field are specified in the most    !
  323.       recent "Assigned Numbers" RFC [2].  Current values are assigned as   !
  324.       follows:
  325.  
  326.          Value (in hex)  Protocol Name
  327.  
  328.          0001 to 001f    reserved (transparency inefficient)
  329.          0021            Internet Protocol
  330.  
  331.  
  332.  
  333. Simpson                  expires in six months                  [Page 4]
  334. DRAFT                   Point-to-Point Protocol                July 1993
  335.  
  336.  
  337.          0023            OSI Network Layer
  338.          0025            Xerox NS IDP
  339.          0027            DECnet Phase IV
  340.          0029            Appletalk
  341.          002b            Novell IPX
  342.          002d            Van Jacobson Compressed TCP/IP
  343.          002f            Van Jacobson Uncompressed TCP/IP
  344.          0031            Bridging PDU
  345.          0033            Stream Protocol (ST-II)
  346.          0035            Banyan Vines
  347.          0037            reserved (until 1993)
  348.          00ff            reserved (compression inefficient)
  349.  
  350.          0201            802.1d Hello Packets
  351.          0231            Luxcom
  352.          0233            Sigma Network Systems
  353.  
  354.          8021            Internet Protocol Control Protocol
  355.          8023            OSI Network Layer Control Protocol
  356.          8025            Xerox NS IDP Control Protocol
  357.          8027            DECnet Phase IV Control Protocol
  358.          8029            Appletalk Control Protocol
  359.          802b            Novell IPX Control Protocol
  360.          802d            Reserved
  361.          802f            Reserved
  362.          8031            Bridging NCP
  363.          8033            Stream Protocol Control Protocol
  364.          8035            Banyan Vines Control Protocol
  365.  
  366.          c021            Link Control Protocol
  367.          c023            Password Authentication Protocol
  368.          c025            Link Quality Report
  369.          c223            Challenge Handshake Authentication Protocol
  370.  
  371.       Developers of new protocols MUST obtain a number from the Internet
  372.       Assigned Numbers Authority (IANA), at IANA@isi.edu.
  373.  
  374.    Information Field
  375.  
  376.       The Information field is zero or more octets.  The Information
  377.       field contains the datagram for the protocol specified in the
  378.       Protocol field.
  379.  
  380.       The maximum length for the Information field, including Padding,     !
  381.       is termed the Maximum Receive Unit (MRU), which defaults to 1500     !
  382.       octets.  By negotiation, consenting PPP implementations may use      !
  383.       other values for the MRU.                                            !
  384.  
  385.  
  386.  
  387.  
  388. Simpson                  expires in six months                  [Page 5]
  389. DRAFT                   Point-to-Point Protocol                July 1993
  390.  
  391.  
  392.    Padding                                                                 !
  393.  
  394.       On transmission, the Information field may be padded with an
  395.       arbitrary number of octets up to the MRU.  It is the                 !
  396.       responsibility of each protocol to distinguish padding octets from
  397.       real information.
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. Simpson                  expires in six months                  [Page 6]
  444. DRAFT                   Point-to-Point Protocol                July 1993
  445.  
  446.  
  447. 3.  PPP Link Operation
  448.  
  449. 3.1.  Overview
  450.  
  451.    In order to establish communications over a point-to-point link, each
  452.    end of the PPP link MUST first send LCP packets to configure and test
  453.    the data link.  After the link has been established, the peer MAY be
  454.    authenticated.  Then, PPP MUST send NCP packets to choose and
  455.    configure one or more network-layer protocols.  Once each of the
  456.    chosen network-layer protocols has been configured, datagrams from
  457.    each network-layer protocol can be sent over the link.
  458.  
  459.    The link will remain configured for communications until explicit LCP
  460.    or NCP packets close the link down, or until some external event
  461.    occurs (an inactivity timer expires or network administrator
  462.    intervention).
  463.  
  464.  
  465. 3.2.  Phase Diagram
  466.  
  467.    In the process of configuring, maintaining and terminating the
  468.    point-to-point link, the PPP link goes through several distinct
  469.    phases:
  470.  
  471.    +------+        +-----------+           +--------------+
  472.    |      | UP     |           | OPENED    |              | SUCCESS/NONE
  473.    | Dead |------->| Establish |---------->| Authenticate |--+
  474.    |      |        |           |           |              |  |
  475.    +------+        +-----------+           +--------------+  |
  476.       ^          FAIL |                   FAIL |             |
  477.       +<--------------+             +----------+             |
  478.       |                             |                        |
  479.       |            +-----------+    |           +---------+  |
  480.       |       DOWN |           |    |   CLOSING |         |  |
  481.       +------------| Terminate |<---+<----------| Network |<-+
  482.                    |           |                |         |
  483.                    +-----------+                +---------+
  484.  
  485.  
  486. 3.3.  Link Dead (physical-layer not ready)
  487.  
  488.    The link necessarily begins and ends with this phase.  When an
  489.    external event (such as carrier detection or network administrator
  490.    configuration) indicates that the physical-layer is ready to be used,
  491.    PPP will proceed to the Link Establishment phase.
  492.  
  493.    During this phase, the LCP automaton (described below) will be in the
  494.    Initial or Starting states.  The transition to the Link Establishment
  495.  
  496.  
  497.  
  498. Simpson                  expires in six months                  [Page 7]
  499. DRAFT                   Point-to-Point Protocol                July 1993
  500.  
  501.  
  502.    phase will signal an Up event to the automaton.
  503.  
  504.    Implementation Note:
  505.  
  506.       Typically, a link will return to this phase automatically after
  507.       the disconnection of a modem.  In the case of a hard-wired line,
  508.       this phase may be extremely short -- merely long enough to detect
  509.       the presence of the device.
  510.  
  511.  
  512. 3.4.  Link Establishment Phase
  513.  
  514.    The Link Control Protocol (LCP) is used to establish the connection
  515.    through an exchange of Configure packets.  This exchange is complete,
  516.    and the LCP Opened state entered, once a Configure-Ack packet
  517.    (described below) has been both sent and received.
  518.  
  519.    All Configuration Options are assumed to be at default values unless
  520.    altered by the configuration exchange.  See the section on LCP
  521.    Configuration Options for further discussion.
  522.  
  523.    It is important to note that only Configuration Options which are
  524.    independent of particular network-layer protocols are configured by
  525.    LCP.  Configuration of individual network-layer protocols is handled
  526.    by separate Network Control Protocols (NCPs) during the Network-Layer
  527.    Protocol phase.
  528.  
  529.    Any non-LCP packets received during this phase MUST be silently
  530.    discarded.
  531.  
  532.  
  533. 3.5.  Authentication Phase
  534.  
  535.    On some links it may be desirable to require a peer to authenticate
  536.    itself before allowing network-layer protocol packets to be
  537.    exchanged.
  538.  
  539.    By default, authentication is not mandatory.  If an implementation      !
  540.    desires that the peer authenticate with some specific authentication
  541.    protocol, then it MUST negotiate the use of that authentication
  542.    protocol during Link Establishment phase.
  543.  
  544.    Authentication SHOULD take place as soon as possible after link
  545.    establishment.  However, link quality determination MAY occur
  546.    concurrently.  An implementation MUST NOT allow the exchange of link
  547.    quality determination packets to delay authentication indefinitely.
  548.  
  549.    Advancement from the Authentication phase to the Network-Layer
  550.  
  551.  
  552.  
  553. Simpson                  expires in six months                  [Page 8]
  554. DRAFT                   Point-to-Point Protocol                July 1993
  555.  
  556.  
  557.    Protocol phase MUST NOT occur until authentication has completed,       !
  558.    using the negotiated authentication protocol.  If authentication        !
  559.    fails, PPP SHOULD proceed instead to the Link Termination phase.        !
  560.  
  561.    Any Network Control Protocol or network-layer protocol packets          !
  562.    received during this phase MUST be silently discarded.                  !
  563.  
  564.  
  565. 3.6.  Network-Layer Protocol Phase
  566.  
  567.    Once PPP has finished the previous phases, each network-layer
  568.    protocol (such as IP, IPX, or AppleTalk) MUST be separately             !
  569.    configured by the appropriate Network Control Protocol (NCP).
  570.  
  571.    Each NCP MAY be Opened and Closed at any time.
  572.  
  573.    Implementation Note:
  574.  
  575.       Because an implementation may initially use a significant amount
  576.       of time for link quality determination, implementations SHOULD
  577.       avoid fixed timeouts when waiting for their peers to configure a
  578.       NCP.
  579.  
  580.    After a NCP has reached the Opened state, PPP will carry the
  581.    corresponding network-layer protocol packets.  Any network-layer
  582.    protocol packets received when the corresponding NCP is not in the
  583.    Opened state MUST be silently discarded.
  584.  
  585.    Implementation Note:
  586.  
  587.       There is an exception to the preceding paragraphs, due to the
  588.       availability of the LCP Protocol-Reject (described below).  While
  589.       LCP is in the Opened state, any protocol packet which is
  590.       unsupported by the implementation MUST be returned in a Protocol-
  591.       Reject.  Only protocols which are supported are silently             !
  592.       discarded.                                                           !
  593.  
  594.    During this phase, link traffic consists of any possible combination
  595.    of LCP, NCP, and network-layer protocol packets.
  596.  
  597.  
  598. 3.7.  Link Termination Phase
  599.  
  600.    PPP may terminate the link at any time.  This will usually happen       !
  601.    because of the loss of carrier, authentication failure, link quality    !
  602.    failure, the expiration of an idle-period timer, or the                 !
  603.    administrative closing of the link.                                     !
  604.  
  605.  
  606.  
  607.  
  608. Simpson                  expires in six months                  [Page 9]
  609. DRAFT                   Point-to-Point Protocol                July 1993
  610.  
  611.  
  612.    LCP is used to close the link through an exchange of Terminate
  613.    packets.  When the link is closing, PPP informs the network-layer
  614.    protocols so that they may take appropriate action.
  615.  
  616.    After the exchange of Terminate packets, the implementation SHOULD
  617.    signal the physical-layer to disconnect in order to enforce the
  618.    termination of the link, particularly in the case of an
  619.    authentication failure.  The sender of the Terminate-Request SHOULD
  620.    disconnect after receiving a Terminate-Ack, or after the Restart
  621.    counter expires.  The receiver of a Terminate-Request SHOULD wait for
  622.    the peer to disconnect, and MUST NOT disconnect until at least one
  623.    Restart time has passed after sending a Terminate-Ack.  PPP SHOULD
  624.    proceed to the Link Dead phase.
  625.  
  626.    Any non-LCP packets received during this phase MUST be silently         !
  627.    discarded.                                                              !
  628.  
  629.    Implementation Note:
  630.  
  631.       The closing of the link by LCP is sufficient.  There is no need
  632.       for each NCP to send a flurry of Terminate packets.  Conversely,
  633.       the fact that one NCP has Closed is not sufficient reason to cause   !
  634.       the termination of the PPP link, even if that NCP was the only NCP
  635.       currently in the Opened state.
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663. Simpson                  expires in six months                 [Page 10]
  664. DRAFT                   Point-to-Point Protocol                July 1993
  665.  
  666.  
  667. 4.  The Option Negotiation Automaton
  668.  
  669.    The finite-state automaton is defined by events, actions and state
  670.    transitions.  Events include reception of external commands such as
  671.    Open and Close, expiration of the Restart timer, and reception of
  672.    packets from a peer.  Actions include the starting of the Restart
  673.    timer and transmission of packets to the peer.
  674.  
  675.    Some types of packets -- Configure-Naks and Configure-Rejects, or
  676.    Code-Rejects and Protocol-Rejects, or Echo-Requests, Echo-Replies and
  677.    Discard-Requests -- are not differentiated in the automaton
  678.    descriptions.  As will be described later, these packets do indeed
  679.    serve different functions.  However, they always cause the same
  680.    transitions.
  681.  
  682.    Events                                   Actions
  683.  
  684.    Up   = lower layer is Up                 tlu = This-Layer-Up
  685.    Down = lower layer is Down               tld = This-Layer-Down
  686.    Open = administrative Open               tls = This-Layer-Started
  687.    Close= administrative Close              tlf = This-Layer-Finished
  688.  
  689.    TO+  = Timeout with counter > 0          irc = Initialize-Restart-Counter
  690.    TO-  = Timeout with counter expired      zrc = Zero-Restart-Counter
  691.  
  692.    RCR+ = Receive-Configure-Request (Good)  scr = Send-Configure-Request
  693.    RCR- = Receive-Configure-Request (Bad)
  694.    RCA  = Receive-Configure-Ack             sca = Send-Configure-Ack
  695.    RCN  = Receive-Configure-Nak/Rej         scn = Send-Configure-Nak/Rej
  696.  
  697.    RTR  = Receive-Terminate-Request         str = Send-Terminate-Request
  698.    RTA  = Receive-Terminate-Ack             sta = Send-Terminate-Ack
  699.  
  700.    RUC  = Receive-Unknown-Code              scj = Send-Code-Reject
  701.    RXJ+ = Receive-Code-Reject (permitted)
  702.        or Receive-Protocol-Reject
  703.    RXJ- = Receive-Code-Reject (catastrophic)
  704.        or Receive-Protocol-Reject
  705.    RXR  = Receive-Echo-Request              ser = Send-Echo-Reply
  706.        or Receive-Echo-Reply
  707.        or Receive-Discard-Request
  708.                                              -  = illegal action
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718. Simpson                  expires in six months                 [Page 11]
  719. DRAFT                   Point-to-Point Protocol                July 1993
  720.  
  721.  
  722. 4.1.  State Diagram
  723.  
  724.    The simplified state diagram which follows describes the sequence of
  725.    events for reaching agreement on Configuration Options (opening the
  726.    PPP link) and for later termination of the link.
  727.  
  728.       This diagram is not a complete representation of the automaton.
  729.       Implementation MUST be done by consulting the actual state
  730.       transition table.
  731.  
  732.    Events are in upper case.  Actions are in lower case.  For these
  733.    purposes, the state machine is initially in the Closed state.  Once
  734.    the Opened state has been reached, both ends of the link have met the
  735.    requirement of having both sent and received a Configure-Ack packet.
  736.  
  737.                    RCR                    TO+
  738.                  +--sta-->+             +------->+
  739.                  |        |             |        |
  740.            +-------+      |   RTA +-------+      | Close +-------+
  741.            |       |<-----+<------|       |<-str-+<------|       |
  742.            |Closed |              |Closing|              |Opened |
  743.            |       | Open         |       |              |       |
  744.            |       |------+       |       |              |       |
  745.            +-------+      |       +-------+              +-------+
  746.                           |                                ^
  747.                           |                                |
  748.                           |         +-sca----------------->+
  749.                           |         |                      ^
  750.                   RCN,TO+ V    RCR+ |     RCR-         RCA |    RCN,TO+
  751.                  +------->+         |   +------->+         |   +--scr-->+
  752.                  |        |         |   |        |         |   |        |
  753.            +-------+      |   TO+ +-------+      |       +-------+      |
  754.            |       |<-scr-+<------|       |<-scn-+       |       |<-----+
  755.            | Req-  |              | Ack-  |              | Ack-  |
  756.            | Sent  | RCA          | Rcvd  |              | Sent  |
  757.     +-scn->|       |------------->|       |       +-sca->|       |
  758.     |      +-------+              +-------+       |      +-------+
  759.     |   RCR- |   | RCR+                           |   RCR+ |   | RCR-
  760.     |        |   +------------------------------->+<-------+   |
  761.     |        |                                                 |
  762.     +<-------+<------------------------------------------------+
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773. Simpson                  expires in six months                 [Page 12]
  774. DRAFT                   Point-to-Point Protocol                July 1993
  775.  
  776.  
  777. 4.2.  State Transition Table
  778.  
  779.    The complete state transition table follows.  States are indicated
  780.    horizontally, and events are read vertically.  State transitions and
  781.    actions are represented in the form action/new-state.  Multiple
  782.    actions are separated by commas, and may continue on succeeding lines
  783.    as space requires; multiple actions may be implemented in any           !
  784.    convenient order.  The state may be followed by a letter, which         !
  785.    indicates an explanatory footnote.
  786.  
  787.       | State
  788.       |    0         1         2         3         4         5
  789. Events| Initial   Starting  Closed    Stopped   Closing   Stopping
  790. ------+-----------------------------------------------------------
  791.  Up   |    2     irc,scr/6     -         -         -         -
  792.  Down |    -         -         0       tls/1       0         1
  793.  Open |  tls/1       1     irc,scr/6     3r        5r        5r
  794.  Close|    0         0         2         2         4         4
  795.       |
  796.   TO+ |    -         -         -         -       str/4     str/5
  797.   TO- |    -         -         -         -       tlf/2     tlf/3
  798.       |
  799.  RCR+ |    -         -       sta/2 irc,scr,sca/8   4         5
  800.  RCR- |    -         -       sta/2 irc,scr,scn/6   4         5
  801.  RCA  |    -         -       sta/2     sta/3       4         5
  802.  RCN  |    -         -       sta/2     sta/3       4         5
  803.       |
  804.  RTR  |    -         -       sta/2     sta/3     sta/4     sta/5
  805.  RTA  |    -         -         2         3       tlf/2     tlf/3
  806.       |
  807.  RUC  |    -         -       scj/2     scj/3     scj/4     scj/5
  808.  RXJ+ |    -         -         2         3         4         5
  809.  RXJ- |    -         -       tlf/2     tlf/3     tlf/2     tlf/3
  810.       |
  811.  RXR  |    -         -         2         3         4         5
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828. Simpson                  expires in six months                 [Page 13]
  829. DRAFT                   Point-to-Point Protocol                July 1993
  830.  
  831.  
  832.       | State
  833.       |    6         7         8           9
  834. Events| Req-Sent  Ack-Rcvd  Ack-Sent    Opened
  835. ------+-----------------------------------------
  836.  Up   |    -         -         -           -
  837.  Down |    1         1         1         tld/1
  838.  Open |    6         7         8           9r
  839.  Close|irc,str/4 irc,str/4 irc,str/4 tld,irc,str/4
  840.       |
  841.   TO+ |  scr/6     scr/6     scr/8         -
  842.   TO- |  tlf/3p    tlf/3p    tlf/3p        -
  843.       |
  844.  RCR+ |  sca/8   sca,tlu/9   sca/8   tld,scr,sca/8
  845.  RCR- |  scn/6     scn/7     scn/6   tld,scr,scn/6
  846.  RCA  |  irc/7     scr/6x  irc,tlu/9   tld,scr/6x
  847.  RCN  |irc,scr/6   scr/6x  irc,scr/8   tld,scr/6x
  848.       |
  849.  RTR  |  sta/6     sta/6     sta/6   tld,zrc,sta/5
  850.  RTA  |    6         6         8       tld,scr/6
  851.       |
  852.  RUC  |  scj/6     scj/7     scj/8       scj/9                             !
  853.  RXJ+ |    6         6         8           9
  854.  RXJ- |  tlf/3     tlf/3     tlf/3   tld,irc,str/5
  855.       |
  856.  RXR  |    6         7         8         ser/9
  857.  
  858.    The states in which the Restart timer is running are identifiable by
  859.    the presence of TO events.  Only the Send-Configure-Request, Send-
  860.    Terminate-Request and Zero-Restart-Counter actions start or re-start
  861.    the Restart timer.  The Restart timer is stopped when transitioning
  862.    from any state where the timer is running to a state where the timer
  863.    is not running.
  864.  
  865.    [p]   Passive option; see Stopped state discussion.
  866.  
  867.    [r]   Restart option; see Open event discussion.
  868.  
  869.    [x]   Crossed connection; see RCA event discussion.
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883. Simpson                  expires in six months                 [Page 14]
  884. DRAFT                   Point-to-Point Protocol                July 1993
  885.  
  886.  
  887. 4.3.  A Day in the Life of a PPP Link                                      !
  888.                                                                            !
  889.    Here is an example of how a typical implementation might use the        !
  890.    automaton to implement LCP:                                             !
  891.                                                                            !
  892.    -  The Network Access Server is powered on (Initial state, Link Dead    !
  893.       phase).                                                              !
  894.                                                                            !
  895.    -  A configuration file indicates that a particular link is to be       !
  896.       used for PPP access (Open: tls/Starting).  The This-Layer-Started    !
  897.       event turns on DTR to a modem, readying it for accepting calls.      !
  898.                                                                            !
  899.    -  An incoming call is answered.  The modem CD triggers configuration   !
  900.       negotiation (Up: irc,scr/Req-Sent, Link Establishment phase).        !
  901.                                                                            !
  902.    -  A Configure-Request is received, which is acknowleged (RCR+:         !
  903.       sca/Ack-Sent).                                                       !
  904.                                                                            !
  905.    -  The Request is acknowleged (RCA: irc,tlu/Opened).  The This-         !
  906.       Layer-Up event starts authentication and quality monitoring          !
  907.       protocols (Authentication phase).                                    !
  908.                                                                            !
  909.    -  When authentication and quality monitoring are satisfied, they       !
  910.       send an Up event to start the available NCPs (Network-Layer          !
  911.       Protocol phase).                                                     !
  912.                                                                            !
  913.    -  Later, the peer is finished, and closes the link.  A Terminate-      !
  914.       Request arrives (RTR: tld,zrc,sta/Stopping, Termination phase).      !
  915.       The This-Layer-Down action sends the Down event to any NCPs, while   !
  916.       the Terminate-Ack is sent.  The Zero-Restart-Counter action causes   !
  917.       the link to wait for the peer to process the Terminate-Ack, with     !
  918.       no retries.                                                          !
  919.                                                                            !
  920.    -  When the Restart Timer times out (TO-: tlf/Stopped), the This-       !
  921.       Layer-Finished action signals the modem to hang up by dropping DTR   !
  922.                                                                            !
  923.    -  When the CD from the modem drops (Down: tls/Starting), the This-     !
  924.       Layer-Started action raises DTR again, readying it for the next      !
  925.       call (returning to the Link Dead phase).                             !
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938. Simpson                  expires in six months                 [Page 15]
  939. DRAFT                   Point-to-Point Protocol                July 1993
  940.  
  941.  
  942. 4.4.  States
  943.  
  944.    Following is a more detailed description of each automaton state.
  945.  
  946.    Initial
  947.  
  948.       In the Initial state, the lower layer is unavailable (Down), and
  949.       no Open has occurred.  The Restart timer is not running in the
  950.       Initial state.
  951.  
  952.    Starting
  953.  
  954.       The Starting state is the Open counterpart to the Initial state.
  955.       An administrative Open has been initiated, but the lower layer is
  956.       still unavailable (Down).  The Restart timer is not running in the
  957.       Starting state.
  958.  
  959.       When the lower layer becomes available (Up), a Configure-Request
  960.       is sent.
  961.  
  962.    Closed
  963.  
  964.       In the Closed state, the link is available (Up), but no Open has
  965.       occurred.  The Restart timer is not running in the Closed state.
  966.  
  967.       Upon reception of Configure-Request packets, a Terminate-Ack is
  968.       sent.  Terminate-Acks are silently discarded to avoid creating a
  969.       loop.
  970.  
  971.    Stopped
  972.  
  973.       The Stopped state is the Open counterpart to the Closed state.  It
  974.       is entered when the automaton is waiting for a Down event after
  975.       the This-Layer-Finished action, or after sending a Terminate-Ack.
  976.       The Restart timer is not running in the Stopped state.
  977.  
  978.       Upon reception of Configure-Request packets, an appropriate
  979.       response is sent.  Upon reception of other packets, a Terminate-
  980.       Ack is sent.  Terminate-Acks are silently discarded to avoid
  981.       creating a loop.
  982.  
  983.       Rationale:
  984.  
  985.          The Stopped state is a junction state for link termination,
  986.          link configuration failure, and other automaton failure modes.
  987.          These potentially separate states have been combined.
  988.  
  989.          There is a race condition between the Down event response (from
  990.  
  991.  
  992.  
  993. Simpson                  expires in six months                 [Page 16]
  994. DRAFT                   Point-to-Point Protocol                July 1993
  995.  
  996.  
  997.          the This-Layer-Finished action) and the Receive-Configure-
  998.          Request event.  When a Configure-Request arrives before the
  999.          Down event, the Down event will supercede by returning the
  1000.          automaton to the Starting state.  This prevents attack by
  1001.          repetition.
  1002.  
  1003.       Implementation Option:
  1004.  
  1005.          After the peer fails to respond to Configure-Requests, an
  1006.          implementation MAY wait passively for the peer to send
  1007.          Configure-Requests.  In this case, the This-Layer-Finished
  1008.          action is not used for the TO- event in states Req-Sent, Ack-
  1009.          Rcvd and Ack-Sent.
  1010.  
  1011.          This option is useful for dedicated circuits, or circuits which
  1012.          have no status signals available, but SHOULD NOT be used for
  1013.          switched circuits.
  1014.  
  1015.    Closing
  1016.  
  1017.       In the Closing state, an attempt is made to terminate the
  1018.       connection.  A Terminate-Request has been sent and the Restart
  1019.       timer is running, but a Terminate-Ack has not yet been received.
  1020.  
  1021.       Upon reception of a Terminate-Ack, the Closed state is entered.
  1022.       Upon the expiration of the Restart timer, a new Terminate-Request
  1023.       is transmitted and the Restart timer is restarted.  After the
  1024.       Restart timer has expired Max-Terminate times, this action may be
  1025.       skipped, and the Closed state may be entered.
  1026.  
  1027.    Stopping
  1028.  
  1029.       The Stopping state is the Open counterpart to the Closing state.
  1030.       A Terminate-Request has been sent and the Restart timer is
  1031.       running, but a Terminate-Ack has not yet been received.
  1032.  
  1033.       Rationale:
  1034.  
  1035.          The Stopping state provides a well defined opportunity to
  1036.          terminate a link before allowing new traffic.  After the link
  1037.          has terminated, a new configuration may occur via the Stopped
  1038.          or Starting states.
  1039.  
  1040.    Request-Sent
  1041.  
  1042.       In the Request-Sent state an attempt is made to configure the
  1043.       connection.  A Configure-Request has been sent and the Restart
  1044.       timer is running, but a Configure-Ack has not yet been received
  1045.  
  1046.  
  1047.  
  1048. Simpson                  expires in six months                 [Page 17]
  1049. DRAFT                   Point-to-Point Protocol                July 1993
  1050.  
  1051.  
  1052.       nor has one been sent.
  1053.  
  1054.    Ack-Received
  1055.  
  1056.       In the Ack-Received state, a Configure-Request has been sent and a
  1057.       Configure-Ack has been received.  The Restart timer is still
  1058.       running since a Configure-Ack has not yet been sent.
  1059.  
  1060.    Ack-Sent
  1061.  
  1062.       In the Ack-Sent state, a Configure-Request and a Configure-Ack
  1063.       have both been sent but a Configure-Ack has not yet been received.
  1064.       The Restart timer is always running in the Ack-Sent state.
  1065.  
  1066.    Opened
  1067.  
  1068.       In the Opened state, a Configure-Ack has been both sent and
  1069.       received.  The Restart timer is not running in the Opened state.
  1070.  
  1071.       When entering the Opened state, the implementation SHOULD signal
  1072.       the upper layers that it is now Up.  Conversely, when leaving the
  1073.       Opened state, the implementation SHOULD signal the upper layers
  1074.       that it is now Down.
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103. Simpson                  expires in six months                 [Page 18]
  1104. DRAFT                   Point-to-Point Protocol                July 1993
  1105.  
  1106.  
  1107. 4.5.  Events
  1108.  
  1109.    Transitions and actions in the automaton are caused by events.
  1110.  
  1111.    Up
  1112.  
  1113.       The Up event occurs when a lower layer indicates that it is ready
  1114.       to carry packets.
  1115.  
  1116.       Typically, this event is used by a modem handling or calling         !
  1117.       process, or by some other coupling of the PPP link to the physical   !
  1118.       media, to signal LCP that the link is entering Link Establishment    !
  1119.       phase.                                                               !
  1120.                                                                            !
  1121.       It also can be used by LCP to signal each NCP that the link is       !
  1122.       entering Network-Layer Protocol phase.  That is, the This-Layer-Up   !
  1123.       action from LCP triggers the Up event in the NCP.                    !
  1124.  
  1125.    Down
  1126.  
  1127.       The Down event occurs when a lower layer indicates that it is no
  1128.       longer ready to carry packets.
  1129.  
  1130.       Typically, this event is used by a modem handling or calling         !
  1131.       process, or by some other coupling of the PPP link to the physical   !
  1132.       media, to signal LCP that the link is entering Link Dead phase.      !
  1133.                                                                            !
  1134.       It also can be used by LCP to signal each NCP that the link is       !
  1135.       leaving Network-Layer Protocol phase.  That is, the This-Layer-      !
  1136.       Down action from LCP triggers the Down event in the NCP.             !
  1137.  
  1138.    Open
  1139.  
  1140.       The Open event indicates that the link is administratively
  1141.       available for traffic; that is, the network administrator (human
  1142.       or program) has indicated that the link is allowed to be Opened.
  1143.       When this event occurs, and the link is not in the Opened state,
  1144.       the automaton attempts to send configuration packets to the peer.
  1145.  
  1146.       If the automaton is not able to begin configuration (the lower
  1147.       layer is Down, or a previous Close event has not completed), the
  1148.       establishment of the link is automatically delayed.
  1149.  
  1150.       When a Terminate-Request is received, or other events occur which
  1151.       cause the link to become unavailable, the automaton will progress
  1152.       to a state where the link is ready to re-open.  No additional
  1153.       administrative intervention is necessary.
  1154.  
  1155.  
  1156.  
  1157.  
  1158. Simpson                  expires in six months                 [Page 19]
  1159. DRAFT                   Point-to-Point Protocol                July 1993
  1160.  
  1161.  
  1162.       Implementation Option:
  1163.  
  1164.          Experience has shown that users will execute an additional Open
  1165.          command when they want to renegotiate the link.  Since this is
  1166.          not the meaning of the Open event, it is suggested that when an
  1167.          Open user command is executed in the Opened, Closing, Stopping,
  1168.          or Stopped states, the implementation issue a Down event,
  1169.          immediately followed by an Up event.  This will cause the
  1170.          renegotiation of the link, without any harmful side effects.
  1171.  
  1172.    Close
  1173.  
  1174.       The Close event indicates that the link is not available for
  1175.       traffic; that is, the network administrator (human or program) has
  1176.       indicated that the link is not allowed to be Opened.  When this
  1177.       event occurs, and the link is not in the Closed state, the
  1178.       automaton attempts to terminate the connection.  Futher attempts
  1179.       to re-configure the link are denied until a new Open event occurs.
  1180.  
  1181.       Implementation Note:                                                 !
  1182.                                                                            !
  1183.          When authentication fails, the link SHOULD be terminated.  This   !
  1184.          can be accomplished by simulating a Close event to the LCP.       !
  1185.          The Close event SHOULD be immediately followed by the Open        !
  1186.          event, since the link is still administratively available.        !
  1187.                                                                            !
  1188.          The Close followed by an Open will cause an orderly termination   !
  1189.          of the link, and the This-Layer-Finished action can disconnect    !
  1190.          the link.  The automaton waits in the Stopped or Starting         !
  1191.          states for the next connection attempt.                           !
  1192.  
  1193.    Timeout (TO+,TO-)
  1194.  
  1195.       This event indicates the expiration of the Restart timer.  The
  1196.       Restart timer is used to time responses to Configure-Request and
  1197.       Terminate-Request packets.
  1198.  
  1199.       The TO+ event indicates that the Restart counter continues to be
  1200.       greater than zero, which triggers the corresponding Configure-
  1201.       Request or Terminate-Request packet to be retransmitted.
  1202.  
  1203.       The TO- event indicates that the Restart counter is not greater
  1204.       than zero, and no more packets need to be retransmitted.
  1205.  
  1206.    Receive-Configure-Request (RCR+,RCR-)
  1207.  
  1208.       This event occurs when a Configure-Request packet is received from
  1209.       the peer.  The Configure-Request packet indicates the desire to
  1210.  
  1211.  
  1212.  
  1213. Simpson                  expires in six months                 [Page 20]
  1214. DRAFT                   Point-to-Point Protocol                July 1993
  1215.  
  1216.  
  1217.       open a connection and may specify Configuration Options.  The
  1218.       Configure-Request packet is more fully described in a later
  1219.       section.
  1220.  
  1221.       The RCR+ event indicates that the Configure-Request was
  1222.       acceptable, and triggers the transmission of a corresponding
  1223.       Configure-Ack.
  1224.  
  1225.       The RCR- event indicates that the Configure-Request was
  1226.       unacceptable, and triggers the transmission of a corresponding
  1227.       Configure-Nak or Configure-Reject.
  1228.  
  1229.       Implementation Note:
  1230.  
  1231.          These events may occur on a connection which is already in the
  1232.          Opened state.  The implementation MUST be prepared to
  1233.          immediately renegotiate the Configuration Options.
  1234.  
  1235.    Receive-Configure-Ack (RCA)
  1236.  
  1237.       The Receive-Configure-Ack event occurs when a valid Configure-Ack
  1238.       packet is received from the peer.  The Configure-Ack packet is a
  1239.       positive response to a Configure-Request packet.  An out of
  1240.       sequence or otherwise invalid packet is silently discarded.
  1241.  
  1242.       Implementation Note:
  1243.  
  1244.          Since the correct packet has already been received before
  1245.          reaching the Ack-Rcvd or Opened states, it is extremely
  1246.          unlikely that another such packet will arrive.  As specified,
  1247.          all invalid Ack/Nak/Rej packets are silently discarded, and do
  1248.          not affect the transitions of the automaton.
  1249.  
  1250.          However, it is not impossible that a correctly formed packet
  1251.          will arrive through a coincidentally-timed cross-connection.
  1252.          It is more likely to be the result of an implementation error.
  1253.          At the very least, this occurance SHOULD be logged.
  1254.  
  1255.    Receive-Configure-Nak/Rej (RCN)
  1256.  
  1257.       This event occurs when a valid Configure-Nak or Configure-Reject
  1258.       packet is received from the peer.  The Configure-Nak and
  1259.       Configure-Reject packets are negative responses to a Configure-
  1260.       Request packet.  An out of sequence or otherwise invalid packet is
  1261.       silently discarded.
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268. Simpson                  expires in six months                 [Page 21]
  1269. DRAFT                   Point-to-Point Protocol                July 1993
  1270.  
  1271.  
  1272.       Implementation Note:
  1273.  
  1274.          Although the Configure-Nak and Configure-Reject cause the same
  1275.          state transition in the automaton, these packets have
  1276.          significantly different effects on the Configuration Options
  1277.          sent in the resulting Configure-Request packet.
  1278.  
  1279.    Receive-Terminate-Request (RTR)
  1280.  
  1281.       The Receive-Terminate-Request event occurs when a Terminate-
  1282.       Request packet is received.  The Terminate-Request packet
  1283.       indicates the desire of the peer to close the connection.
  1284.  
  1285.       Implementation Note:
  1286.  
  1287.          This event is not identical to the Close event (see above), and
  1288.          does not override the Open commands of the local network
  1289.          administrator.  The implementation MUST be prepared to receive
  1290.          a new Configure-Request without network administrator
  1291.          intervention.
  1292.  
  1293.    Receive-Terminate-Ack (RTA)
  1294.  
  1295.       The Receive-Terminate-Ack event occurs when a Terminate-Ack packet
  1296.       is received from the peer.  The Terminate-Ack packet is usually a
  1297.       response to a Terminate-Request packet.  The Terminate-Ack packet
  1298.       may also indicate that the peer is in Closed or Stopped states,
  1299.       and serves to re-synchronize the link configuration.
  1300.  
  1301.    Receive-Unknown-Code (RUC)
  1302.  
  1303.       The Receive-Unknown-Code event occurs when an un-interpretable
  1304.       packet is received from the peer.  A Code-Reject packet is sent in
  1305.       response.
  1306.  
  1307.    Receive-Code-Reject, Receive-Protocol-Reject (RXJ+,RXJ-)
  1308.  
  1309.       This event occurs when a Code-Reject or a Protocol-Reject packet
  1310.       is received from the peer.
  1311.  
  1312.       The RXJ+ event arises when the rejected value is acceptable, such
  1313.       as a Code-Reject of an extended code, or a Protocol-Reject of a
  1314.       NCP.  These are within the scope of normal operation.  The
  1315.       implementation MUST stop sending the offending packet type.
  1316.  
  1317.       The RXJ- event arises when the rejected value is catastrophic,
  1318.       such as a Code-Reject of Configure-Request, or a Protocol-Reject
  1319.       of LCP!  This event communicates an unrecoverable error that
  1320.  
  1321.  
  1322.  
  1323. Simpson                  expires in six months                 [Page 22]
  1324. DRAFT                   Point-to-Point Protocol                July 1993
  1325.  
  1326.  
  1327.       terminates the connection.
  1328.  
  1329.    Receive-Echo-Request, Receive-Echo-Reply, Receive-Discard-Request
  1330.    (RXR)
  1331.  
  1332.       This event occurs when an Echo-Request, Echo-Reply or Discard-
  1333.       Request packet is received from the peer.  The Echo-Reply packet
  1334.       is a response to a Echo-Request packet.  There is no reply to an
  1335.       Echo-Reply or Discard-Request packet.
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378. Simpson                  expires in six months                 [Page 23]
  1379. DRAFT                   Point-to-Point Protocol                July 1993
  1380.  
  1381.  
  1382. 4.6.  Actions
  1383.  
  1384.    Actions in the automaton are caused by events and typically indicate
  1385.    the transmission of packets and/or the starting or stopping of the
  1386.    Restart timer.
  1387.  
  1388.    Illegal-Event (-)
  1389.  
  1390.       This indicates an event that cannot occur in a properly              !
  1391.       implemented automaton.  The implementation has an internal error.    !
  1392.  
  1393.    This-Layer-Up (tlu)
  1394.  
  1395.       This action indicates to the upper layers that the automaton is
  1396.       entering the Opened state.
  1397.  
  1398.       Typically, this action is used by the LCP to signal the Up event
  1399.       to a NCP, Authentication Protocol, or Link Quality Protocol, or
  1400.       MAY be used by a NCP to indicate that the link is available for
  1401.       its network layer traffic.
  1402.  
  1403.    This-Layer-Down (tld)
  1404.  
  1405.       This action indicates to the upper layers that the automaton is
  1406.       leaving the Opened state.
  1407.  
  1408.       Typically, this action is used by the LCP to signal the Down event
  1409.       to a NCP, Authentication Protocol, or Link Quality Protocol, or
  1410.       MAY be used by a NCP to indicate that the link is no longer
  1411.       available for its network layer traffic.
  1412.  
  1413.    This-Layer-Started (tls)
  1414.  
  1415.       This action indicates to the lower layers that the automaton is
  1416.       entering the Starting state, and the lower layer is needed for the
  1417.       link.  The lower layer SHOULD respond with an Up event when the
  1418.       lower layer is available.
  1419.  
  1420.       This action is highly implementation dependent.
  1421.  
  1422.    This-Layer-Finished (tlf)
  1423.  
  1424.       This action indicates to the lower layers that the automaton is
  1425.       entering the Stopped or Closed states, and the lower layer is no
  1426.       longer needed for the link.  The lower layer SHOULD respond with a
  1427.       Down event when the lower layer has terminated.
  1428.  
  1429.       Typically, this action MAY be used by the LCP to advance to the
  1430.  
  1431.  
  1432.  
  1433. Simpson                  expires in six months                 [Page 24]
  1434. DRAFT                   Point-to-Point Protocol                July 1993
  1435.  
  1436.  
  1437.       Link Dead phase, or MAY be used by a NCP to indicate to the LCP
  1438.       that the link may terminate when there are no other NCPs open.
  1439.  
  1440.       This action is highly implementation dependent.
  1441.  
  1442.    Initialize-Restart-Counter (irc)
  1443.  
  1444.       This action sets the Restart counter to the appropriate value
  1445.       (Max-Terminate or Max-Configure).  The counter is decremented for
  1446.       each transmission, including the first.
  1447.  
  1448.    Zero-Restart-Counter (zrc)
  1449.  
  1450.       This action sets the Restart counter to zero.
  1451.  
  1452.       Implementation Note:
  1453.  
  1454.          This action enables the FSA to pause before proceeding to the
  1455.          desired final state, allowing traffic to be processed by the      !
  1456.          peer.  In addition to zeroing the Restart counter, the            !
  1457.          implementation MUST set the timeout period to an appropriate
  1458.          value.
  1459.  
  1460.    Send-Configure-Request (scr)
  1461.  
  1462.       The Send-Configure-Request action transmits a Configure-Request
  1463.       packet.  This indicates the desire to open a connection with a
  1464.       specified set of Configuration Options.  The Restart timer is
  1465.       started when the Configure-Request packet is transmitted, to guard
  1466.       against packet loss.  The Restart counter is decremented each time
  1467.       a Configure-Request is sent.
  1468.  
  1469.    Send-Configure-Ack (sca)
  1470.  
  1471.       The Send-Configure-Ack action transmits a Configure-Ack packet.
  1472.       This acknowledges the reception of a Configure-Request packet with
  1473.       an acceptable set of Configuration Options.
  1474.  
  1475.    Send-Configure-Nak (scn)
  1476.  
  1477.       The Send-Configure-Nak action transmits a Configure-Nak or
  1478.       Configure-Reject packet, as appropriate.  This negative response
  1479.       reports the reception of a Configure-Request packet with an
  1480.       unacceptable set of Configuration Options.  Configure-Nak packets
  1481.       are used to refuse a Configuration Option value, and to suggest a
  1482.       new, acceptable value.  Configure-Reject packets are used to
  1483.       refuse all negotiation about a Configuration Option, typically
  1484.       because it is not recognized or implemented.  The use of
  1485.  
  1486.  
  1487.  
  1488. Simpson                  expires in six months                 [Page 25]
  1489. DRAFT                   Point-to-Point Protocol                July 1993
  1490.  
  1491.  
  1492.       Configure-Nak versus Configure-Reject is more fully described in
  1493.       the section on LCP Packet Formats.
  1494.  
  1495.    Send-Terminate-Request (str)
  1496.  
  1497.       The Send-Terminate-Request action transmits a Terminate-Request
  1498.       packet.  This indicates the desire to close a connection.  The
  1499.       Restart timer is started when the Terminate-Request packet is
  1500.       transmitted, to guard against packet loss.  The Restart counter is
  1501.       decremented each time a Terminate-Request is sent.
  1502.  
  1503.    Send-Terminate-Ack (sta)
  1504.  
  1505.       The Send-Terminate-Ack action transmits a Terminate-Ack packet.
  1506.       This acknowledges the reception of a Terminate-Request packet or
  1507.       otherwise serves to synchronize the state machines.
  1508.  
  1509.    Send-Code-Reject (scj)
  1510.  
  1511.       The Send-Code-Reject action transmits a Code-Reject packet.  This
  1512.       indicates the reception of an unknown type of packet.
  1513.  
  1514.    Send-Echo-Reply (ser)
  1515.  
  1516.       The Send-Echo-Reply action transmits an Echo-Reply packet.  This
  1517.       acknowledges the reception of an Echo-Request packet.
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543. Simpson                  expires in six months                 [Page 26]
  1544. DRAFT                   Point-to-Point Protocol                July 1993
  1545.  
  1546.  
  1547. 4.7.  Loop Avoidance
  1548.  
  1549.    The protocol makes a reasonable attempt at avoiding Configuration
  1550.    Option negotiation loops.  However, the protocol does NOT guarantee
  1551.    that loops will not happen.  As with any negotiation, it is possible
  1552.    to configure two PPP implementations with conflicting policies that
  1553.    will never converge.  It is also possible to configure policies which
  1554.    do converge, but which take significant time to do so.  Implementors
  1555.    should keep this in mind and SHOULD implement loop detection
  1556.    mechanisms or higher level timeouts.
  1557.  
  1558.  
  1559. 4.8.  Counters and Timers
  1560.  
  1561. Restart Timer
  1562.  
  1563.    There is one special timer used by the automaton.  The Restart timer
  1564.    is used to time transmissions of Configure-Request and Terminate-
  1565.    Request packets.  Expiration of the Restart timer causes a Timeout
  1566.    event, and retransmission of the corresponding Configure-Request or
  1567.    Terminate-Request packet.  The Restart timer MUST be configurable,
  1568.    but SHOULD default to three (3) seconds.
  1569.  
  1570.    Implementation Note:
  1571.  
  1572.       The Restart timer SHOULD be based on the speed of the link.  The
  1573.       default value is designed for low speed (19,200 bps or less), high
  1574.       switching latency links (typical telephone lines).  Higher speed
  1575.       links, or links with low switching latency, SHOULD have
  1576.       correspondingly faster retransmission times.
  1577.  
  1578. Max-Terminate
  1579.  
  1580.    There is one required restart counter for Terminate-Requests.  Max-
  1581.    Terminate indicates the number of Terminate-Request packets sent
  1582.    without receiving a Terminate-Ack before assuming that the peer is
  1583.    unable to respond.  Max-Terminate MUST be configurable, but SHOULD
  1584.    default to two (2) transmissions.
  1585.  
  1586. Max-Configure
  1587.  
  1588.    A similar counter is recommended for Configure-Requests.  Max-
  1589.    Configure indicates the number of Configure-Request packets sent
  1590.    without receiving a valid Configure-Ack, Configure-Nak or Configure-
  1591.    Reject before assuming that the peer is unable to respond.  Max-
  1592.    Configure MUST be configurable, but SHOULD default to ten (10)
  1593.    transmissions.
  1594.  
  1595.  
  1596.  
  1597.  
  1598. Simpson                  expires in six months                 [Page 27]
  1599. DRAFT                   Point-to-Point Protocol                July 1993
  1600.  
  1601.  
  1602. Max-Failure
  1603.  
  1604.    A related counter is recommended for Configure-Nak.  Max-Failure
  1605.    indicates the number of Configure-Nak packets sent without sending a
  1606.    Configure-Ack before assuming that configuration is not converging.
  1607.    Any further Configure-Nak packets are converted to Configure-Reject
  1608.    packets.  Max-Failure MUST be configurable, but SHOULD default to ten
  1609.    (10) transmissions.
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653. Simpson                  expires in six months                 [Page 28]
  1654. DRAFT                   Point-to-Point Protocol                July 1993
  1655.  
  1656.  
  1657. 5.  LCP Packet Formats
  1658.  
  1659.    There are three classes of LCP packets:
  1660.  
  1661.       1. Link Configuration packets used to establish and configure a
  1662.          link (Configure-Request, Configure-Ack, Configure-Nak and
  1663.          Configure-Reject).
  1664.  
  1665.       2. Link Termination packets used to terminate a link (Terminate-
  1666.          Request and Terminate-Ack).
  1667.  
  1668.       3. Link Maintenance packets used to manage and debug a link
  1669.          (Code-Reject, Protocol-Reject, Echo-Request, Echo-Reply, and
  1670.          Discard-Request).
  1671.  
  1672.    This document describes Version 1 of the Link Control Protocol.  In
  1673.    the interest of simplicity, there is no version field in the LCP
  1674.    packet.  If a new version of LCP is necessary in the future, the
  1675.    intention is that a new PPP Protocol field value will be used to        !
  1676.    differentiate Version 1 LCP from all other versions.  A correctly
  1677.    functioning Version 1 LCP implementation will always respond to
  1678.    unknown Protocols (including other versions) with an easily
  1679.    recognizable Version 1 packet, thus providing a deterministic
  1680.    fallback mechanism for implementations of other versions.
  1681.  
  1682.    Regardless of which Configuration Options are enabled, all LCP Link
  1683.    Configuration, Link Termination, and Code-Reject packets (codes 1
  1684.    through 7) are always sent as if no Configuration Options were
  1685.    enabled.  In particular, the ACCM default is used, and no address,      !
  1686.    control, or protocol field compression is used.  This ensures that      !
  1687.    LCP Configure-Request packets are always recognizable even when one
  1688.    end of the link mistakenly believes the link to be open.
  1689.  
  1690.    Exactly one Link Control Protocol packet is encapsulated in the
  1691.    Information field of a PPP Data Link Layer frame where the Protocol     !
  1692.    field indicates type hex c021 (Link Control Protocol).
  1693.  
  1694.    A summary of the Link Control Protocol packet format is shown below.
  1695.    The fields are transmitted from left to right.
  1696.  
  1697.     0                   1                   2                   3
  1698.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1699.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1700.    |     Code      |  Identifier   |            Length             |
  1701.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1702.    |    Data ...
  1703.    +-+-+-+-+
  1704.  
  1705.  
  1706.  
  1707.  
  1708. Simpson                  expires in six months                 [Page 29]
  1709. DRAFT                   Point-to-Point Protocol                July 1993
  1710.  
  1711.  
  1712.    Code
  1713.  
  1714.       The Code field is one octet and identifies the kind of LCP packet.
  1715.       When a packet is received with an invalid Code field, a Code-
  1716.       Reject packet is transmitted.
  1717.  
  1718.       Up-to-date values of the LCP Code field are specified in the most    !
  1719.       recent "Assigned Numbers" RFC [2].  Current values are assigned as   !
  1720.       follows:
  1721.  
  1722.          1       Configure-Request
  1723.          2       Configure-Ack
  1724.          3       Configure-Nak
  1725.          4       Configure-Reject
  1726.          5       Terminate-Request
  1727.          6       Terminate-Ack
  1728.          7       Code-Reject
  1729.          8       Protocol-Reject
  1730.          9       Echo-Request
  1731.          10      Echo-Reply
  1732.          11      Discard-Request
  1733.          12      RESERVED
  1734.  
  1735.  
  1736.    Identifier
  1737.  
  1738.       The Identifier field is one octet and aids in matching requests
  1739.       and replies.  When a packet is received with an invalid Identifier
  1740.       field, the packet is silently discarded.
  1741.  
  1742.    Length
  1743.  
  1744.       The Length field is two octets and indicates the length of the LCP
  1745.       packet including the Code, Identifier, Length and Data fields.
  1746.       Octets outside the range of the Length field are treated as
  1747.       padding and are ignored on reception.  When a packet is received     !
  1748.       with an invalid Length field, the packet is silently discarded.
  1749.  
  1750.    Data
  1751.  
  1752.       The Data field is zero or more octets as indicated by the Length
  1753.       field.  The format of the Data field is determined by the Code
  1754.       field.
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763. Simpson                  expires in six months                 [Page 30]
  1764. DRAFT                   Point-to-Point Protocol                July 1993
  1765.  
  1766.  
  1767. 5.1.  Configure-Request
  1768.  
  1769.    Description
  1770.  
  1771.       An implementation wishing to open a connection MUST transmit a LCP   !
  1772.       packet with the Code field set to 1 (Configure-Request) and the
  1773.       Options field filled with any desired changes to the default link
  1774.       Configuration Options.
  1775.  
  1776.       Upon reception of a Configure-Request, an appropriate reply MUST
  1777.       be transmitted.
  1778.  
  1779.    A summary of the Configure-Request packet format is shown below.  The
  1780.    fields are transmitted from left to right.
  1781.  
  1782.     0                   1                   2                   3
  1783.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1784.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1785.    |     Code      |  Identifier   |            Length             |
  1786.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1787.    | Options ...
  1788.    +-+-+-+-+
  1789.  
  1790.  
  1791.    Code
  1792.  
  1793.       1 for Configure-Request.
  1794.  
  1795.    Identifier
  1796.  
  1797.       The Identifier field SHOULD be changed on each transmission.  On
  1798.       reception, the Identifier field is copied into the Identifier
  1799.       field of the appropriate reply packet.
  1800.  
  1801.    Options
  1802.  
  1803.       The options field is variable in length and contains the list of
  1804.       zero or more Configuration Options that the sender desires to
  1805.       negotiate.  All Configuration Options are always negotiated
  1806.       simultaneously.  The format of Configuration Options is further
  1807.       described in a later section.
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818. Simpson                  expires in six months                 [Page 31]
  1819. DRAFT                   Point-to-Point Protocol                July 1993
  1820.  
  1821.  
  1822. 5.2.  Configure-Ack
  1823.  
  1824.    Description
  1825.  
  1826.       If every Configuration Option received in a Configure-Request is
  1827.       both recognizable and acceptable, then the implementation MUST       !
  1828.       transmit a LCP packet with the Code field set to 2 (Configure-
  1829.       Ack), the Identifier field copied from the received Configure-
  1830.       Request, and the Options field copied from the received
  1831.       Configure-Request.  The acknowledged Configuration Options MUST
  1832.       NOT be reordered or modified in any way.
  1833.  
  1834.       On reception of a Configure-Ack, the Identifier field MUST match
  1835.       that of the last transmitted Configure-Request.  Additionally, the
  1836.       Configuration Options in a Configure-Ack MUST exactly match those
  1837.       of the last transmitted Configure-Request.  Invalid packets are
  1838.       silently discarded.
  1839.  
  1840.    A summary of the Configure-Ack packet format is shown below.  The
  1841.    fields are transmitted from left to right.
  1842.  
  1843.     0                   1                   2                   3
  1844.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1845.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1846.    |     Code      |  Identifier   |            Length             |
  1847.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1848.    | Options ...
  1849.    +-+-+-+-+
  1850.  
  1851.  
  1852.    Code
  1853.  
  1854.       2 for Configure-Ack.
  1855.  
  1856.    Identifier
  1857.  
  1858.       The Identifier field is a copy of the Identifier field of the
  1859.       Configure-Request which caused this Configure-Ack.
  1860.  
  1861.    Options
  1862.  
  1863.       The Options field is variable in length and contains the list of
  1864.       zero or more Configuration Options that the sender is
  1865.       acknowledging.  All Configuration Options are always acknowledged
  1866.       simultaneously.
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873. Simpson                  expires in six months                 [Page 32]
  1874. DRAFT                   Point-to-Point Protocol                July 1993
  1875.  
  1876.  
  1877. 5.3.  Configure-Nak
  1878.  
  1879.    Description
  1880.  
  1881.       If every element of the received Configuration Options is
  1882.       recognizable but some are not acceptable, then the implementation    !
  1883.       MUST transmit a LCP packet with the Code field set to 3              !
  1884.       (Configure-Nak), the Identifier field copied from the received
  1885.       Configure-Request, and the Options field filled with only the
  1886.       unacceptable Configuration Options from the Configure-Request.
  1887.       All acceptable Configuration Options are filtered out of the
  1888.       Configure-Nak, but otherwise the Configuration Options from the
  1889.       Configure-Request MUST NOT be reordered.
  1890.  
  1891.       Each of the Nak'd Configuration Options MUST be modified to a
  1892.       value acceptable to the Configure-Nak sender.  Options which have
  1893.       no value fields (boolean options) MUST use the Configure-Reject      !
  1894.       reply instead.
  1895.  
  1896.       When a particular Nak'd Configuration Option is listed more than     !
  1897.       once with different values, the Configure-Nak MUST include a list    !
  1898.       of all values for that option which are acceptable to the            !
  1899.       Configure-Nak sender.  The peer SHOULD select a single value from    !
  1900.       the list to include in its next Configure-Request packet.            !
  1901.  
  1902.       Finally, an implementation may be configured to request the
  1903.       negotiation of a specific option.  If that option is not listed,
  1904.       then that option may be appended to the list of Nak'd
  1905.       Configuration Options in order to prompt the peer to include that    !
  1906.       option in its next Configure-Request packet.  Any value fields for
  1907.       the option MUST indicate values acceptable to the Configure-Nak
  1908.       sender.
  1909.  
  1910.       On reception of a Configure-Nak, the Identifier field MUST match
  1911.       that of the last transmitted Configure-Request.  Invalid packets
  1912.       are silently discarded.
  1913.  
  1914.       Reception of a valid Configure-Nak indicates that a new
  1915.       Configure-Request MAY be sent with the Configuration Options
  1916.       modified as specified in the Configure-Nak.
  1917.  
  1918.       Some Configuration Options have a variable length.  Since the
  1919.       Nak'd Option has been modified by the peer, the implementation
  1920.       MUST be able to handle an Option length which is different from
  1921.       the original Configure-Request.
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928. Simpson                  expires in six months                 [Page 33]
  1929. DRAFT                   Point-to-Point Protocol                July 1993
  1930.  
  1931.  
  1932.    A summary of the Configure-Nak packet format is shown below.  The
  1933.    fields are transmitted from left to right.
  1934.  
  1935.     0                   1                   2                   3
  1936.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1937.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1938.    |     Code      |  Identifier   |            Length             |
  1939.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1940.    | Options ...
  1941.    +-+-+-+-+
  1942.  
  1943.  
  1944.    Code
  1945.  
  1946.       3 for Configure-Nak.
  1947.  
  1948.    Identifier
  1949.  
  1950.       The Identifier field is a copy of the Identifier field of the
  1951.       Configure-Request which caused this Configure-Nak.
  1952.  
  1953.    Options
  1954.  
  1955.       The Options field is variable in length and contains the list of
  1956.       zero or more Configuration Options that the sender is Nak'ing.
  1957.       All Configuration Options are always Nak'd simultaneously.
  1958.  
  1959.  
  1960. 5.4.  Configure-Reject
  1961.  
  1962.    Description
  1963.  
  1964.       If some Configuration Options received in a Configure-Request are
  1965.       not recognizable or are not acceptable for negotiation (as
  1966.       configured by a network administrator), then the implementation      !
  1967.       MUST transmit a LCP packet with the Code field set to 4              !
  1968.       (Configure-Reject), the Identifier field copied from the received
  1969.       Configure-Request, and the Options field filled with only the
  1970.       unacceptable Configuration Options from the Configure-Request.
  1971.       All recognizable and negotiable Configuration Options are filtered
  1972.       out of the Configure-Reject, but otherwise the Configuration
  1973.       Options MUST NOT be reordered or modified in any way.
  1974.  
  1975.       On reception of a Configure-Reject, the Identifier field MUST
  1976.       match that of the last transmitted Configure-Request.
  1977.       Additionally, the Configuration Options in a Configure-Reject MUST
  1978.       be a proper subset of those in the last transmitted Configure-
  1979.       Request.  Invalid packets are silently discarded.
  1980.  
  1981.  
  1982.  
  1983. Simpson                  expires in six months                 [Page 34]
  1984. DRAFT                   Point-to-Point Protocol                July 1993
  1985.  
  1986.  
  1987.       Reception of a valid Configure-Reject indicates that a new
  1988.       Configure-Request SHOULD be sent which does not include any of the
  1989.       Configuration Options listed in the Configure-Reject.
  1990.  
  1991.    A summary of the Configure-Reject packet format is shown below.  The
  1992.    fields are transmitted from left to right.
  1993.  
  1994.     0                   1                   2                   3
  1995.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1996.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1997.    |     Code      |  Identifier   |            Length             |
  1998.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1999.    | Options ...
  2000.    +-+-+-+-+
  2001.  
  2002.  
  2003.    Code
  2004.  
  2005.       4 for Configure-Reject.
  2006.  
  2007.    Identifier
  2008.  
  2009.       The Identifier field is a copy of the Identifier field of the
  2010.       Configure-Request which caused this Configure-Reject.
  2011.  
  2012.    Options
  2013.  
  2014.       The Options field is variable in length and contains the list of
  2015.       zero or more Configuration Options that the sender is rejecting.
  2016.       All Configuration Options are always rejected simultaneously.
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038. Simpson                  expires in six months                 [Page 35]
  2039. DRAFT                   Point-to-Point Protocol                July 1993
  2040.  
  2041.  
  2042. 5.5.  Terminate-Request and Terminate-Ack
  2043.  
  2044.    Description
  2045.  
  2046.       LCP includes Terminate-Request and Terminate-Ack Codes in order to
  2047.       provide a mechanism for closing a connection.
  2048.  
  2049.       A LCP implementation wishing to close a connection SHOULD transmit
  2050.       a LCP packet with the Code field set to 5 (Terminate-Request) and
  2051.       the Data field filled with any desired data.  Terminate-Request
  2052.       packets SHOULD continue to be sent until Terminate-Ack is
  2053.       received, the lower layer indicates that it has gone down, or a
  2054.       sufficiently large number have been transmitted such that the peer
  2055.       is down with reasonable certainty.
  2056.  
  2057.       Upon reception of a Terminate-Request, a LCP packet MUST be
  2058.       transmitted with the Code field set to 6 (Terminate-Ack), the
  2059.       Identifier field copied from the Terminate-Request packet, and the
  2060.       Data field filled with any desired data.
  2061.  
  2062.       Reception of an unelicited Terminate-Ack indicates that the peer
  2063.       is in the Closed or Stopped states, or is otherwise in need of
  2064.       re-negotiation.
  2065.  
  2066.    A summary of the Terminate-Request and Terminate-Ack packet formats
  2067.    is shown below.  The fields are transmitted from left to right.
  2068.  
  2069.     0                   1                   2                   3
  2070.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2071.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2072.    |     Code      |  Identifier   |            Length             |
  2073.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2074.    |    Data ...
  2075.    +-+-+-+-+
  2076.  
  2077.  
  2078.    Code
  2079.  
  2080.       5 for Terminate-Request;
  2081.  
  2082.       6 for Terminate-Ack.
  2083.  
  2084.    Identifier
  2085.  
  2086.       The Identifier field is one octet and aids in matching requests
  2087.       and replies.
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093. Simpson                  expires in six months                 [Page 36]
  2094. DRAFT                   Point-to-Point Protocol                July 1993
  2095.  
  2096.  
  2097.    Data
  2098.  
  2099.       The Data field is zero or more octets and contains uninterpreted
  2100.       data for use by the sender.  The data may consist of any binary
  2101.       value and may be of any length from zero to the peer's established
  2102.       MRU minus four.                                                      !
  2103.  
  2104.  
  2105. 5.6.  Code-Reject
  2106.  
  2107.    Description
  2108.  
  2109.       Reception of a LCP packet with an unknown Code indicates that one
  2110.       of the communicating LCP implementations is faulty or incomplete.
  2111.       This error MUST be reported back to the sender of the unknown Code
  2112.       by transmitting a LCP packet with the Code field set to 7 (Code-
  2113.       Reject), and the inducing packet copied to the Rejected-
  2114.       Information field.
  2115.  
  2116.       Upon reception of a Code-Reject, the implementation SHOULD report
  2117.       the error, since it is unlikely that the situation can be
  2118.       rectified automatically.
  2119.  
  2120.    A summary of the Code-Reject packet format is shown below.  The
  2121.    fields are transmitted from left to right.
  2122.  
  2123.     0                   1                   2                   3
  2124.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2125.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2126.    |     Code      |  Identifier   |            Length             |
  2127.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2128.    | Rejected-Packet ...
  2129.    +-+-+-+-+-+-+-+-+
  2130.  
  2131.  
  2132.    Code
  2133.  
  2134.       7 for Code-Reject.
  2135.  
  2136.    Identifier
  2137.  
  2138.       The Identifier field is one octet and is for use by the
  2139.       transmitter.
  2140.  
  2141.    Rejected-Information
  2142.  
  2143.       The Rejected-Information field contains a copy of the LCP packet
  2144.       which is being rejected.  It begins with the Information field,
  2145.  
  2146.  
  2147.  
  2148. Simpson                  expires in six months                 [Page 37]
  2149. DRAFT                   Point-to-Point Protocol                July 1993
  2150.  
  2151.  
  2152.       and does not include any Data Link Layer headers nor an FCS.  The
  2153.       Rejected-Information MUST be truncated to comply with the peer's
  2154.       established MRU.                                                     !
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203. Simpson                  expires in six months                 [Page 38]
  2204. DRAFT                   Point-to-Point Protocol                July 1993
  2205.  
  2206.  
  2207. 5.7.  Protocol-Reject
  2208.  
  2209.    Description
  2210.  
  2211.       Reception of a PPP frame with an unknown Protocol field indicates
  2212.       that the peer is attempting to use a protocol which is
  2213.       unsupported.  This usually occurs when the peer attempts to
  2214.       configure a new protocol.  If the LCP state machine is in the
  2215.       Opened state, then this error MUST be reported back to the peer by
  2216.       transmitting a LCP packet with the Code field set to 8 (Protocol-
  2217.       Reject), the Rejected-Protocol field set to the received Protocol,
  2218.       and the inducing packet copied to the Rejected-Information field.
  2219.  
  2220.       Upon reception of a Protocol-Reject, the implementation MUST stop    !
  2221.       transmitting frames of the indicated protocol.
  2222.  
  2223.       Protocol-Reject packets can only be sent in the LCP Opened state.
  2224.       Protocol-Reject packets received in any state other than the LCP
  2225.       Opened state SHOULD be silently discarded.
  2226.  
  2227.    A summary of the Protocol-Reject packet format is shown below.  The
  2228.    fields are transmitted from left to right.
  2229.  
  2230.     0                   1                   2                   3
  2231.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2232.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2233.    |     Code      |  Identifier   |            Length             |
  2234.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2235.    |       Rejected-Protocol       |      Rejected-Information ...
  2236.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2237.  
  2238.  
  2239.    Code
  2240.  
  2241.       8 for Protocol-Reject.
  2242.  
  2243.    Identifier
  2244.  
  2245.       The Identifier field is one octet and is for use by the
  2246.       transmitter.
  2247.  
  2248.    Rejected-Protocol
  2249.  
  2250.       The Rejected-Protocol field is two octets and contains the PPP       !
  2251.       Protocol field of the frame which is being rejected.                 !
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258. Simpson                  expires in six months                 [Page 39]
  2259. DRAFT                   Point-to-Point Protocol                July 1993
  2260.  
  2261.  
  2262.    Rejected-Information
  2263.  
  2264.       The Rejected-Information field contains a copy of the datagram
  2265.       which is being rejected.  It begins with the Information field,
  2266.       and does not include any Data Link Layer headers nor an FCS.  The
  2267.       Rejected-Information MUST be truncated to comply with the peer's
  2268.       established MRU.                                                     !
  2269.  
  2270.  
  2271. 5.8.  Echo-Request and Echo-Reply
  2272.  
  2273.    Description
  2274.  
  2275.       LCP includes Echo-Request and Echo-Reply Codes in order to provide
  2276.       a Data Link Layer loopback mechanism for use in exercising both
  2277.       directions of the link.  This is useful as an aid in debugging,
  2278.       link quality determination, performance testing, and for numerous
  2279.       other functions.
  2280.  
  2281.       An Echo-Request sender transmits a LCP packet with the Code field
  2282.       set to 9 (Echo-Request), the Identifier field set, the local
  2283.       Magic-Number inserted, and the Data field filled with any desired
  2284.       data, but not exceeding the peer's established MRU minus eight.      !
  2285.  
  2286.       Upon reception of an Echo-Request, a LCP packet MUST be
  2287.       transmitted with the Code field set to 10 (Echo-Reply), the
  2288.       Identifier field copied from the received Echo-Request, the local
  2289.       Magic-Number inserted, and the Data field copied from the Echo-
  2290.       Request, truncating as necessary to avoid exceeding the peer's
  2291.       established MRU.                                                     !
  2292.  
  2293.       Echo-Request and Echo-Reply packets may only be sent in the LCP
  2294.       Opened state.  Echo-Request and Echo-Reply packets received in any
  2295.       state other than the LCP Opened state SHOULD be silently
  2296.       discarded.
  2297.  
  2298.    A summary of the Echo-Request and Echo-Reply packet formats is shown
  2299.    below.  The fields are transmitted from left to right.
  2300.  
  2301.     0                   1                   2                   3
  2302.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2303.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2304.    |     Code      |  Identifier   |            Length             |
  2305.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2306.    |                         Magic-Number                          |
  2307.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2308.    |    Data ...
  2309.    +-+-+-+-+
  2310.  
  2311.  
  2312.  
  2313. Simpson                  expires in six months                 [Page 40]
  2314. DRAFT                   Point-to-Point Protocol                July 1993
  2315.  
  2316.  
  2317.    Code
  2318.  
  2319.       9 for Echo-Request;
  2320.  
  2321.       10 for Echo-Reply.
  2322.  
  2323.    Identifier
  2324.  
  2325.       The Identifier field is one octet and aids in matching Echo-
  2326.       Requests and Echo-Replies.
  2327.  
  2328.    Magic-Number
  2329.  
  2330.       The Magic-Number field is four octets and aids in detecting links
  2331.       which are in the looped-back condition.  Unless modified by a
  2332.       Configuration Option, the Magic-Number MUST be transmitted as zero
  2333.       and MUST be ignored on reception.  See the Magic-Number
  2334.       Configuration Option for further explanation.
  2335.  
  2336.    Data
  2337.  
  2338.       The Data field is zero or more octets and contains uninterpreted
  2339.       data for use by the sender.  The data may consist of any binary
  2340.       value and may be of any length from zero to the peer's established
  2341.       MRU minus eight.                                                     !
  2342.  
  2343.  
  2344. 5.9.  Discard-Request
  2345.  
  2346.    Description
  2347.  
  2348.       LCP includes a Discard-Request Code in order to provide a Data
  2349.       Link Layer sink mechanism for use in exercising the local to
  2350.       remote direction of the link.  This is useful as an aid in
  2351.       debugging, performance testing, and for numerous other functions.
  2352.  
  2353.       A discard sender transmits a LCP packet with the Code field set to
  2354.       11 (Discard-Request) the Identifier field set, the local Magic-
  2355.       Number inserted, and the Data field filled with any desired data,
  2356.       but not exceeding the peer's established MRU minus eight.            !
  2357.  
  2358.       A discard receiver MUST simply throw away any Discard-Request that
  2359.       it receives.
  2360.  
  2361.       Discard-Request packets may only be sent in the LCP Opened state.
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368. Simpson                  expires in six months                 [Page 41]
  2369. DRAFT                   Point-to-Point Protocol                July 1993
  2370.  
  2371.  
  2372.    A summary of the Discard-Request packet format is shown below.  The
  2373.    fields are transmitted from left to right.
  2374.  
  2375.     0                   1                   2                   3
  2376.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2377.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2378.    |     Code      |  Identifier   |            Length             |
  2379.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2380.    |                         Magic-Number                          |
  2381.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2382.    |    Data ...
  2383.    +-+-+-+-+
  2384.  
  2385.  
  2386.    Code
  2387.  
  2388.       11 for Discard-Request.
  2389.  
  2390.    Identifier
  2391.  
  2392.       The Identifier field is one octet and is for use by the Discard-
  2393.       Request transmitter.
  2394.  
  2395.    Magic-Number
  2396.  
  2397.       The Magic-Number field is four octets and aids in detecting links
  2398.       which are in the looped-back condition.  Unless modified by a
  2399.       configuration option, the Magic-Number MUST be transmitted as zero
  2400.       and MUST be ignored on reception.  See the Magic-Number
  2401.       Configuration Option for further explanation.
  2402.  
  2403.    Data
  2404.  
  2405.       The Data field is zero or more octets and contains uninterpreted
  2406.       data for use by the sender.  The data may consist of any binary
  2407.       value and may be of any length from zero to the peer's established
  2408.       MRU minus four.                                                      !
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423. Simpson                  expires in six months                 [Page 42]
  2424. DRAFT                   Point-to-Point Protocol                July 1993
  2425.  
  2426.  
  2427. 6.  LCP Configuration Options
  2428.  
  2429.    LCP Configuration Options allow negotiation of modifications to the     !
  2430.    default characteristics of a point-to-point link.  If a Configuration   !
  2431.    Option is not included in a Configure-Request packet, the default
  2432.    value for that Configuration Option is assumed.
  2433.  
  2434.    Some Configuration Options MAY be listed more than once.  The effect
  2435.    of this is Configuration Option specific, and is specified by each
  2436.    such Configuration Option description.
  2437.  
  2438.    The end of the list of Configuration Options is indicated by the
  2439.    length of the LCP packet.
  2440.  
  2441.    Unless otherwise specified, all Configuration Options apply in a
  2442.    half-duplex fashion; typically, in the receive direction of the link    !
  2443.    from the point of view of the Configure-Request sender.
  2444.  
  2445.    A summary of the Configuration Option format is shown below.  The
  2446.    fields are transmitted from left to right.
  2447.  
  2448.     0                   1
  2449.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
  2450.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2451.    |     Type      |    Length     |    Data ...
  2452.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2453.  
  2454.  
  2455.    Type
  2456.  
  2457.       The Type field is one octet and indicates the type of
  2458.       Configuration Option.  Up-to-date values of the LCP Option Type      !
  2459.       field are specified in the most recent "Assigned Numbers" RFC [2].
  2460.       Current values are assigned as follows:
  2461.  
  2462.          1       Maximum-Receive-Unit
  2463.          2       Async-Control-Character-Map
  2464.          3       Authentication-Protocol
  2465.          4       Quality-Protocol
  2466.          5       Magic-Number
  2467.          6       RESERVED
  2468.          7       Protocol-Field-Compression
  2469.          8       Address-and-Control-Field-Compression
  2470.  
  2471.  
  2472.    Length
  2473.  
  2474.       The Length field is one octet and indicates the length of this
  2475.       Configuration Option including the Type, Length and Data fields.
  2476.  
  2477.  
  2478.  
  2479. Simpson                  expires in six months                 [Page 43]
  2480. DRAFT                   Point-to-Point Protocol                July 1993
  2481.  
  2482.  
  2483.       If a negotiable Configuration Option is received in a Configure-
  2484.       Request but with an invalid Length, a Configure-Nak SHOULD be
  2485.       transmitted which includes the desired Configuration Option with
  2486.       an appropriate Length and Data.
  2487.  
  2488.    Data
  2489.  
  2490.       The Data field is zero or more octets and contains information
  2491.       specific to the Configuration Option.  The format and length of      !
  2492.       the Data field is determined by the Type and Length fields.
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534. Simpson                  expires in six months                 [Page 44]
  2535. DRAFT                   Point-to-Point Protocol                July 1993
  2536.  
  2537.  
  2538. 6.1.  Maximum-Receive-Unit
  2539.  
  2540.    Description
  2541.  
  2542.       This Configuration Option may be sent to inform the peer that the
  2543.       implementation can receive larger frames, or to request that the
  2544.       peer send smaller frames.
  2545.  
  2546.       The default value is 1500 octets.  If smaller frames are             !
  2547.       requested, an implementation MUST still be able to receive the       !
  2548.       full 1500 octet information field in case link synchronization is
  2549.       lost.
  2550.  
  2551.       Implementation Note:                                                 !
  2552.                                                                            !
  2553.          This option is used to indicate an implementation capability.     !
  2554.          The peer is not required to maximize the use of the capacity.     !
  2555.          For example, when a MRU is indicated which is 2048 octets, the    !
  2556.          peer is not required to send any packet with 2048 octets.  The    !
  2557.          peer need not Configure-Nak to indicate that it will only send    !
  2558.          smaller packets, since the implementation will always require     !
  2559.          support for at least 1500 octets.                                 !
  2560.  
  2561.    A summary of the Maximum-Receive-Unit Configuration Option format is
  2562.    shown below.  The fields are transmitted from left to right.
  2563.  
  2564.     0                   1                   2                   3
  2565.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2566.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2567.    |     Type      |    Length     |      Maximum-Receive-Unit     |
  2568.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2569.  
  2570.  
  2571.    Type
  2572.  
  2573.       1
  2574.  
  2575.    Length
  2576.  
  2577.       4
  2578.  
  2579.    Maximum-Receive-Unit
  2580.  
  2581.       The Maximum-Receive-Unit field is two octets, and specifies the
  2582.       maximum number of octets in the Information and Padding fields.      !
  2583.       It does not include the framing, Protocol field, FCS, nor any        !
  2584.       transparency bits or bytes.
  2585.  
  2586.  
  2587.  
  2588.  
  2589. Simpson                  expires in six months                 [Page 45]
  2590. DRAFT                   Point-to-Point Protocol                July 1993
  2591.  
  2592.  
  2593. 6.2.  Async-Control-Character-Map
  2594.  
  2595.    Description
  2596.  
  2597.       This Configuration Option provides a method to negotiate the use
  2598.       of control character transparency on asynchronous links.
  2599.  
  2600.       For asynchronous links, the default value is 0xffffffff, which       !
  2601.       causes all octets less than 0x20 to be mapped into an appropriate    !
  2602.       two octet sequence.  For bit-synchronous links, the default value    !
  2603.       is 0, since there is no need for mapping.                            !
  2604.  
  2605.       However, it is rarely necessary to map all control characters, and
  2606.       often it is unnecessary to map any control characters.  The          !
  2607.       Configuration Option is used to inform the peer which control        !
  2608.       characters MUST remain mapped when the peer sends them.              !
  2609.  
  2610.       The peer MAY still send any other octets in mapped format, if it
  2611.       is necessary because of constraints known to the peer.  The peer     !
  2612.       SHOULD Configure-Nak with the logical union of the sets of mapped    !
  2613.       octets, so that when such octets are spuriously introduced they      !
  2614.       can be ignored on receipt.                                           !
  2615.  
  2616.    A summary of the Async-Control-Character-Map Configuration Option
  2617.    format is shown below.  The fields are transmitted from left to
  2618.    right.
  2619.  
  2620.     0                   1                   2                   3
  2621.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2622.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2623.    |     Type      |    Length     |  Async-Control-Character-Map
  2624.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2625.              ACCM (cont)           |
  2626.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2627.  
  2628.  
  2629.    Type
  2630.  
  2631.       2
  2632.  
  2633.    Length
  2634.  
  2635.       6
  2636.  
  2637.    Async-Control-Character-Map
  2638.  
  2639.       The Async-Control-Character-Map field is four octets and indicates
  2640.  
  2641.  
  2642.  
  2643. Simpson                  expires in six months                 [Page 46]
  2644. DRAFT                   Point-to-Point Protocol                July 1993
  2645.  
  2646.  
  2647.       the set of control characters to be mapped.  The map is sent most    !
  2648.       significant octet first.                                             !
  2649.  
  2650.       Each numbered bit corresponds to the octet of the same value.  If    !
  2651.       the bit is cleared to zero, then that octet need not be mapped.
  2652.       If the bit is set to one, then that octet MUST remain mapped.  For   !
  2653.       example, if bit 19 is set to zero, then the ASCII control
  2654.       character 19 (DC3, Control-S) MAY be sent in the clear.
  2655.  
  2656.          Note: The least significant bit of the least significant octet
  2657.          (the final octet transmitted) is numbered bit 0, and would map
  2658.          to the ASCII control character NUL.
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697.  
  2698. Simpson                  expires in six months                 [Page 47]
  2699. DRAFT                   Point-to-Point Protocol                July 1993
  2700.  
  2701.  
  2702. 6.3.  Authentication-Protocol
  2703.  
  2704.    Description
  2705.  
  2706.       On some links it may be desirable to require a peer to
  2707.       authenticate itself before allowing network-layer protocol packets
  2708.       to be exchanged.
  2709.  
  2710.       This Configuration Option provides a method to negotiate the use
  2711.       of a specific authentication protocol.  By default, authentication
  2712.       is not required.
  2713.  
  2714.       An implementation MUST NOT include multiple Authentication-          !
  2715.       Protocol Configuration Options in its Configure-Request packets.
  2716.       Instead, it SHOULD attempt to configure the most desirable
  2717.       protocol first.  If that protocol is Configure-Nak'd, then the       !
  2718.       implementation SHOULD attempt the next most desirable protocol in
  2719.       the next Configure-Request.
  2720.  
  2721.       If an implementation sends a Configure-Ack with this Configuration
  2722.       Option, then it is agreeing to authenticate with the specified
  2723.       protocol.  An implementation receiving a Configure-Ack with this
  2724.       Configuration Option SHOULD expect the peer to authenticate with
  2725.       the acknowledged protocol.
  2726.  
  2727.       There is no requirement that authentication be full duplex or that
  2728.       the same protocol be used in both directions.  It is perfectly
  2729.       acceptable for different protocols to be used in each direction.
  2730.       This will, of course, depend on the specific protocols negotiated.
  2731.  
  2732.    A summary of the Authentication-Protocol Configuration Option format
  2733.    is shown below.  The fields are transmitted from left to right.
  2734.  
  2735.     0                   1                   2                   3
  2736.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2737.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2738.    |     Type      |    Length     |     Authentication-Protocol   |
  2739.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2740.    |    Data ...
  2741.    +-+-+-+-+
  2742.  
  2743.  
  2744.    Type
  2745.  
  2746.       3
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753. Simpson                  expires in six months                 [Page 48]
  2754. DRAFT                   Point-to-Point Protocol                July 1993
  2755.  
  2756.  
  2757.    Length
  2758.  
  2759.       >= 4
  2760.  
  2761.    Authentication-Protocol
  2762.  
  2763.       The Authentication-Protocol field is two octets and indicates the
  2764.       authentication protocol desired.  Values for this field are always
  2765.       the same as the PPP Protocol field values for that same
  2766.       authentication protocol.
  2767.  
  2768.       Up-to-date values of the Authentication-Protocol field are           !
  2769.       specified in the most recent "Assigned Numbers" RFC [2].  Current
  2770.       values are assigned as follows:
  2771.  
  2772.          Value (in hex)          Protocol
  2773.  
  2774.          c023                    Password Authentication Protocol
  2775.          c223                    Challenge Handshake Authentication Protocol
  2776.  
  2777.  
  2778.    Data
  2779.  
  2780.       The Data field is zero or more octets and contains additional data
  2781.       as determined by the particular protocol.
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808. Simpson                  expires in six months                 [Page 49]
  2809. DRAFT                   Point-to-Point Protocol                July 1993
  2810.  
  2811.  
  2812. 6.4.  Quality-Protocol
  2813.  
  2814.    Description
  2815.  
  2816.       On some links it may be desirable to determine when, and how
  2817.       often, the link is dropping data.  This process is called link
  2818.       quality monitoring.
  2819.  
  2820.       This Configuration Option provides a method to negotiate the use
  2821.       of a specific protocol for link quality monitoring.  By default,
  2822.       link quality monitoring is disabled.
  2823.  
  2824.       There is no requirement that quality monitoring be full duplex or
  2825.       that the same protocol be used in both directions.  It is
  2826.       perfectly acceptable for different protocols to be used in each
  2827.       direction.  This will, of course, depend on the specific protocols
  2828.       negotiated.
  2829.  
  2830.    A summary of the Quality-Protocol Configuration Option format is
  2831.    shown below.  The fields are transmitted from left to right.
  2832.  
  2833.     0                   1                   2                   3
  2834.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2835.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2836.    |     Type      |    Length     |        Quality-Protocol       |
  2837.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2838.    |    Data ...
  2839.    +-+-+-+-+
  2840.  
  2841.  
  2842.    Type
  2843.  
  2844.       4
  2845.  
  2846.    Length
  2847.  
  2848.       >= 4
  2849.  
  2850.    Quality-Protocol
  2851.  
  2852.       The Quality-Protocol field is two octets and indicates the link
  2853.       quality monitoring protocol desired.  Values for this field are
  2854.       always the same as the PPP Protocol field values for that same
  2855.       monitoring protocol.
  2856.  
  2857.       Up-to-date values of the Quality-Protocol field are specified in     !
  2858.       the most recent "Assigned Numbers" RFC [2].  Current values are
  2859.       assigned as follows:
  2860.  
  2861.  
  2862.  
  2863. Simpson                  expires in six months                 [Page 50]
  2864. DRAFT                   Point-to-Point Protocol                July 1993
  2865.  
  2866.  
  2867.  
  2868.          Value (in hex)          Protocol
  2869.  
  2870.          c025                    Link Quality Report
  2871.  
  2872.  
  2873.    Data
  2874.  
  2875.       The Data field is zero or more octets and contains additional data
  2876.       as determined by the particular protocol.
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918. Simpson                  expires in six months                 [Page 51]
  2919. DRAFT                   Point-to-Point Protocol                July 1993
  2920.  
  2921.  
  2922. 6.5.  Magic-Number
  2923.  
  2924.    Description
  2925.  
  2926.       This Configuration Option provides a method to detect looped-back
  2927.       links and other Data Link Layer anomalies.  This Configuration
  2928.       Option MAY be required by some other Configuration Options such as
  2929.       the Quality-Protocol Configuration Option.  By default, the          !
  2930.       Magic-Number is not negotiated, and zero is inserted where a         !
  2931.       Magic-Number might otherwise be used.                                !
  2932.  
  2933.       Before this Configuration Option is requested, an implementation
  2934.       MUST choose its Magic-Number.  It is recommended that the Magic-
  2935.       Number be chosen in the most random manner possible in order to
  2936.       guarantee with very high probability that an implementation will
  2937.       arrive at a unique number.  A good way to choose a unique random
  2938.       number is to start with an unique seed.  Suggested sources of
  2939.       uniqueness include machine serial numbers, other network hardware
  2940.       addresses, time-of-day clocks, etc.  Particularly good random
  2941.       number seeds are precise measurements of the inter-arrival time of
  2942.       physical events such as packet reception on other connected
  2943.       networks, server response time, or the typing rate of a human
  2944.       user.  It is also suggested that as many sources as possible be
  2945.       used simultaneously.
  2946.  
  2947.       When a Configure-Request is received with a Magic-Number
  2948.       Configuration Option, the received Magic-Number is compared with
  2949.       the Magic-Number of the last Configure-Request sent to the peer.
  2950.       If the two Magic-Numbers are different, then the link is not
  2951.       looped-back, and the Magic-Number SHOULD be acknowledged.  If the
  2952.       two Magic-Numbers are equal, then it is possible, but not certain,
  2953.       that the link is looped-back and that this Configure-Request is
  2954.       actually the one last sent.  To determine this, a Configure-Nak
  2955.       MUST be sent specifying a different Magic-Number value.  A new       !
  2956.       Configure-Request SHOULD NOT be sent to the peer until normal
  2957.       processing would cause it to be sent (that is, until a Configure-
  2958.       Nak is received or the Restart timer runs out).
  2959.  
  2960.       Reception of a Configure-Nak with a Magic-Number different from
  2961.       that of the last Configure-Nak sent to the peer proves that a link
  2962.       is not looped-back, and indicates a unique Magic-Number.  If the
  2963.       Magic-Number is equal to the one sent in the last Configure-Nak,
  2964.       the possibility of a looped-back link is increased, and a new
  2965.       Magic-Number MUST be chosen.  In either case, a new Configure-
  2966.       Request SHOULD be sent with the new Magic-Number.
  2967.  
  2968.       If the link is indeed looped-back, this sequence (transmit
  2969.       Configure-Request, receive Configure-Request, transmit Configure-
  2970.  
  2971.  
  2972.  
  2973. Simpson                  expires in six months                 [Page 52]
  2974. DRAFT                   Point-to-Point Protocol                July 1993
  2975.  
  2976.  
  2977.       Nak, receive Configure-Nak) will repeat over and over again.  If
  2978.       the link is not looped-back, this sequence might occur a few
  2979.       times, but it is extremely unlikely to occur repeatedly.  More
  2980.       likely, the Magic-Numbers chosen at either end will quickly
  2981.       diverge, terminating the sequence.  The following table shows the
  2982.       probability of collisions assuming that both ends of the link
  2983.       select Magic-Numbers with a perfectly uniform distribution:
  2984.  
  2985.          Number of Collisions        Probability
  2986.          --------------------   ---------------------
  2987.                  1              1/2**32    = 2.3 E-10
  2988.                  2              1/2**32**2 = 5.4 E-20
  2989.                  3              1/2**32**3 = 1.3 E-29
  2990.  
  2991.  
  2992.       Good sources of uniqueness or randomness are required for this
  2993.       divergence to occur.  If a good source of uniqueness cannot be
  2994.       found, it is recommended that this Configuration Option not be
  2995.       enabled; Configure-Requests with the option SHOULD NOT be
  2996.       transmitted and any Magic-Number Configuration Options which the
  2997.       peer sends SHOULD be either acknowledged or rejected.  In this
  2998.       case, loop-backs cannot be reliably detected by the
  2999.       implementation, although they may still be detectable by the peer.
  3000.  
  3001.       If an implementation does transmit a Configure-Request with a
  3002.       Magic-Number Configuration Option, then it MUST NOT respond with a
  3003.       Configure-Reject if it receives a Configure-Request with a           !
  3004.       Magic-Number Configuration Option.  That is, if an implementation
  3005.       desires to use Magic Numbers, then it MUST also allow its peer to
  3006.       do so.  If an implementation does receive a Configure-Reject in
  3007.       response to a Configure-Request, it can only mean that the link is
  3008.       not looped-back, and that its peer will not be using
  3009.       Magic-Numbers.  In this case, an implementation SHOULD act as if
  3010.       the negotiation had been successful (as if it had instead received
  3011.       a Configure-Ack).
  3012.  
  3013.       The Magic-Number also may be used to detect looped-back links
  3014.       during normal operation as well as during Configuration Option
  3015.       negotiation.  All LCP Echo-Request, Echo-Reply, and Discard-
  3016.       Request packets have a Magic-Number field.  If Magic-Number has      !
  3017.       been successfully negotiated, an implementation MUST transmit
  3018.       these packets with the Magic-Number field set to its negotiated
  3019.       Magic-Number.
  3020.  
  3021.       The Magic-Number field of these packets SHOULD be inspected on
  3022.       reception.  All received Magic-Number fields MUST be equal to
  3023.       either zero or the peer's unique Magic-Number, depending on
  3024.       whether or not the peer negotiated a Magic-Number.
  3025.  
  3026.  
  3027.  
  3028. Simpson                  expires in six months                 [Page 53]
  3029. DRAFT                   Point-to-Point Protocol                July 1993
  3030.  
  3031.  
  3032.       Reception of a Magic-Number field equal to the negotiated local
  3033.       Magic-Number indicates a looped-back link.  Reception of a Magic-
  3034.       Number other than the negotiated local Magic-Number or the peer's
  3035.       negotiated Magic-Number, or zero if the peer didn't negotiate one,
  3036.       indicates a link which has been (mis)configured for communications
  3037.       with a different peer.
  3038.  
  3039.       Procedures for recovery from either case are unspecified and may
  3040.       vary from implementation to implementation.  A somewhat
  3041.       pessimistic procedure is to assume a LCP Down event.  A further
  3042.       Open event will begin the process of re-establishing the link,
  3043.       which can't complete until the loop-back condition is terminated
  3044.       and Magic-Numbers are successfully negotiated.  A more optimistic
  3045.       procedure (in the case of a loop-back) is to begin transmitting
  3046.       LCP Echo-Request packets until an appropriate Echo-Reply is
  3047.       received, indicating a termination of the loop-back condition.
  3048.  
  3049.    A summary of the Magic-Number Configuration Option format is shown
  3050.    below.  The fields are transmitted from left to right.
  3051.  
  3052.     0                   1                   2                   3
  3053.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  3054.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3055.    |     Type      |    Length     |          Magic-Number
  3056.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3057.          Magic-Number (cont)       |
  3058.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3059.  
  3060.  
  3061.    Type
  3062.  
  3063.       5
  3064.  
  3065.    Length
  3066.  
  3067.       6
  3068.  
  3069.    Magic-Number
  3070.  
  3071.       The Magic-Number field is four octets and indicates a number which
  3072.       is very likely to be unique to one end of the link.  A Magic-
  3073.       Number of zero is illegal and MUST always be Nak'd, if it is not
  3074.       Rejected outright.
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083. Simpson                  expires in six months                 [Page 54]
  3084. DRAFT                   Point-to-Point Protocol                July 1993
  3085.  
  3086.  
  3087. 6.6.  Protocol-Field-Compression
  3088.  
  3089.    Description
  3090.  
  3091.       This Configuration Option provides a method to negotiate the
  3092.       compression of the PPP Protocol field.  By default, all              !
  3093.       implementations MUST transmit standard PPP frames with two octet
  3094.       Protocol fields.
  3095.  
  3096.       PPP Protocol field numbers are chosen such that some values may be
  3097.       compressed into a single octet form which is clearly
  3098.       distinguishable from the two octet form.  This Configuration
  3099.       Option is sent to inform the peer that the implementation can
  3100.       receive such single octet Protocol fields.
  3101.  
  3102.       As previously mentioned, the Protocol field uses an extension
  3103.       mechanism consistent with the ISO 3309 extension mechanism for the
  3104.       Address field; the Least Significant Bit (LSB) of each octet is
  3105.       used to indicate extension of the Protocol field.  A binary "0" as
  3106.       the LSB indicates that the Protocol field continues with the
  3107.       following octet.  The presence of a binary "1" as the LSB marks
  3108.       the last octet of the Protocol field.  Notice that any number of
  3109.       "0" octets may be prepended to the field, and will still indicate
  3110.       the same value (consider the two binary representations for 3,
  3111.       00000011 and 00000000 00000011).
  3112.  
  3113.       When using low speed links, it is desirable to conserve bandwidth
  3114.       by sending as little redundant data as possible.  The Protocol-
  3115.       Field-Compression Configuration Option allows a trade-off between    !
  3116.       implementation simplicity and bandwidth efficiency.  If
  3117.       successfully negotiated, the ISO 3309 extension mechanism may be
  3118.       used to compress the Protocol field to one octet instead of two.
  3119.       The large majority of frames are compressible since data protocols
  3120.       are typically assigned with Protocol field values less than 256.
  3121.  
  3122.       Compressed Protocol fields MUST NOT be transmitted unless this
  3123.       Configuration Option has been negotiated.  When negotiated, PPP      !
  3124.       implementations MUST accept PPP frames with either double-octet or
  3125.       single-octet Protocol fields, and MUST NOT distinguish between
  3126.       them.
  3127.  
  3128.       The Protocol field is never compressed when sending any LCP
  3129.       packet.  This rule guarantees unambiguous recognition of LCP
  3130.       packets.
  3131.  
  3132.       When a Protocol field is compressed, the Data Link Layer FCS field
  3133.       is calculated on the compressed frame, not the original
  3134.  
  3135.  
  3136.  
  3137. Simpson                  expires in six months                 [Page 55]
  3138. DRAFT                   Point-to-Point Protocol                July 1993
  3139.  
  3140.  
  3141.       uncompressed frame.
  3142.  
  3143.    A summary of the Protocol-Field-Compression Configuration Option
  3144.    format is shown below.  The fields are transmitted from left to
  3145.    right.
  3146.  
  3147.     0                   1
  3148.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  3149.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3150.    |     Type      |    Length     |
  3151.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3152.  
  3153.  
  3154.    Type
  3155.  
  3156.       7
  3157.  
  3158.    Length
  3159.  
  3160.       2
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192. Simpson                  expires in six months                 [Page 56]
  3193. DRAFT                   Point-to-Point Protocol                July 1993
  3194.  
  3195.  
  3196. 6.7.  Address-and-Control-Field-Compression
  3197.  
  3198.    Description
  3199.  
  3200.       This Configuration Option provides a method to negotiate the
  3201.       compression of the Data Link Layer Address and Control fields.  By
  3202.       default, all implementations MUST transmit frames with Address and
  3203.       Control fields appropriate to the link framing.                      !
  3204.  
  3205.       Since these fields usually have constant values for point-to-point   !
  3206.       links, they are easily compressed.  This Configuration Option is
  3207.       sent to inform the peer that the implementation can receive
  3208.       compressed Address and Control fields.
  3209.  
  3210.       If a compressed frame is received when Address-and-Control-Field-
  3211.       Compression has not been negotiated, the implementation MAY
  3212.       silently discard the frame.
  3213.  
  3214.       The Address and Control fields MUST NOT be compressed when sending
  3215.       any LCP packet.  This rule guarantees unambiguous recognition of
  3216.       LCP packets.
  3217.  
  3218.       When the Address and Control fields are compressed, the Data Link
  3219.       Layer FCS field is calculated on the compressed frame, not the
  3220.       original uncompressed frame.
  3221.  
  3222.    A summary of the Address-and-Control-Field-Compression configuration
  3223.    option format is shown below.  The fields are transmitted from left
  3224.    to right.
  3225.  
  3226.     0                   1
  3227.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  3228.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3229.    |     Type      |    Length     |
  3230.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  3231.  
  3232.  
  3233.    Type
  3234.  
  3235.       8
  3236.  
  3237.    Length
  3238.  
  3239.       2
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247. Simpson                  expires in six months                 [Page 57]
  3248. DRAFT                   Point-to-Point Protocol                July 1993
  3249.  
  3250.  
  3251. A.  LCP Recommended Options
  3252.  
  3253.    The following Configurations Options are recommended:
  3254.  
  3255.       SYNC LINES
  3256.  
  3257.       Magic Number
  3258.       Link Quality Monitoring
  3259.       No Address and Control Field Compression
  3260.       No Protocol Field Compression
  3261.  
  3262.  
  3263.       ASYNC LINES
  3264.  
  3265.       Async Control Character Map
  3266.       Magic Number
  3267.       Address and Control Field Compression
  3268.       Protocol Field Compression
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302. Simpson                  expires in six months                 [Page 58]
  3303. DRAFT                   Point-to-Point Protocol                July 1993
  3304.  
  3305.  
  3306. Security Considerations
  3307.  
  3308.    Security issues are briefly discussed in sections concerning the
  3309.    Authentication Phase, the Close event, and the Authentication-
  3310.    Protocol Configuration Option.  Further discussion is in a companion
  3311.    document entitled PPP Authentication Protocols.
  3312.  
  3313. References
  3314.  
  3315.    [1]   Electronic Industries Association, EIA Standard RS-232-C,
  3316.          "Interface Between Data Terminal Equipment and Data
  3317.          Communications Equipment Employing Serial Binary Data
  3318.          Interchange", August 1969.
  3319.  
  3320.    [2]   Reynolds, J.K., Postel, J.B., "Assigned Numbers", RFC 1340,
  3321.          July 1992.
  3322.  
  3323.  
  3324. Acknowledgments
  3325.  
  3326.    Much of the text in this document is taken from the WG Requirements,
  3327.    and RFCs 1171 & 1172, by Drew Perkins of Carnegie Mellon University,
  3328.    and by Russ Hobby of the University of California at Davis.
  3329.  
  3330.    Many people spent significant time helping to develop the Point-to-
  3331.    Point Protocol.  The complete list of people is too numerous to list,
  3332.    but the following people deserve special thanks: Rick Adams (UUNET),
  3333.    Ken Adelman (TGV), Fred Baker (ACC), Mike Ballard (Telebit), Craig
  3334.    Fox (Network Systems), Karl Fox (Morning Star Technologies), Phill
  3335.    Gross (NRI), former WG chair Russ Hobby (UC Davis), David Kaufman
  3336.    (Proteon), former WG chair Steve Knowles (FTP Software), former WG
  3337.    chair Brian Lloyd (L&A), John LoVerso (Xylogics), Bill Melohn (Sun
  3338.    Microsystems), Mike Patton (MIT), former WG chair Drew Perkins (CMU),
  3339.    Greg Satz (cisco systems), John Shriver (Proteon), and Asher
  3340.    Waldfogel (Wellfleet).
  3341.  
  3342.    The "Day in the Life" example was provided by Kory Hamzeh (Avatar).
  3343.    In this version, improvements in wording were also provided by Scott
  3344.    Ginsburg, Mark Moraes, and Timon Sloan, as they worked on
  3345.    implementations.
  3346.  
  3347.    Special thanks to Morning Star Technologies for providing computing
  3348.    resources and network access support for writing this specification.
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357. Simpson                  expires in six months                 [Page 59]
  3358. DRAFT                   Point-to-Point Protocol                July 1993
  3359.  
  3360.  
  3361. Chair's Address
  3362.  
  3363.    The working group can be contacted via the current chair:
  3364.  
  3365.       Fred Baker
  3366.       Advanced Computer Communications
  3367.       315 Bollay Drive
  3368.       Santa Barbara, California, 93111
  3369.  
  3370.       EMail: fbaker@acc.com
  3371.  
  3372.  
  3373. Author's Address
  3374.  
  3375.    Questions about this memo can also be directed to:
  3376.  
  3377.       William Allen Simpson
  3378.       Daydreamer
  3379.       Computer Systems Consulting Services
  3380.       P O Box 6205
  3381.       East Lansing, MI  48826-6205
  3382.  
  3383.       EMail: Bill.Simpson@um.cc.umich.edu
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412. Simpson                  expires in six months                 [Page 60]
  3413. DRAFT                   Point-to-Point Protocol                July 1993
  3414.  
  3415.  
  3416.                            Table of Contents
  3417.  
  3418.  
  3419.      1.     Introduction ..........................................    1
  3420.         1.1       Specification of Requirements ...................    2
  3421.         1.2       Terminology .....................................    3
  3422.  
  3423.      2.     PPP Encapsulation .....................................    4
  3424.  
  3425.      3.     PPP Link Operation ....................................    7
  3426.         3.1       Overview ........................................    7
  3427.         3.2       Phase Diagram ...................................    7
  3428.         3.3       Link Dead (physical-layer not ready) ............    7
  3429.         3.4       Link Establishment Phase ........................    8
  3430.         3.5       Authentication Phase ............................    8
  3431.         3.6       Network-Layer Protocol Phase ....................    9
  3432.         3.7       Link Termination Phase ..........................    9
  3433.  
  3434.      4.     The Option Negotiation Automaton ......................   11
  3435.         4.1       State Diagram ...................................   12
  3436.         4.2       State Transition Table ..........................   13
  3437.         4.3       A Day in the Life of a PPP Link .................   15
  3438.         4.4       States ..........................................   16
  3439.         4.5       Events ..........................................   19
  3440.         4.6       Actions .........................................   24
  3441.         4.7       Loop Avoidance ..................................   27
  3442.         4.8       Counters and Timers .............................   27
  3443.  
  3444.      5.     LCP Packet Formats ....................................   29
  3445.         5.1       Configure-Request ...............................   31
  3446.         5.2       Configure-Ack ...................................   32
  3447.         5.3       Configure-Nak ...................................   33
  3448.         5.4       Configure-Reject ................................   34
  3449.         5.5       Terminate-Request and Terminate-Ack .............   36
  3450.         5.6       Code-Reject .....................................   37
  3451.         5.7       Protocol-Reject .................................   39
  3452.         5.8       Echo-Request and Echo-Reply .....................   40
  3453.         5.9       Discard-Request .................................   41
  3454.  
  3455.      6.     LCP Configuration Options .............................   43
  3456.         6.1       Maximum-Receive-Unit ............................   45
  3457.         6.2       Async-Control-Character-Map .....................   46
  3458.         6.3       Authentication-Protocol .........................   48
  3459.         6.4       Quality-Protocol ................................   50
  3460.         6.5       Magic-Number ....................................   52
  3461.         6.6       Protocol-Field-Compression ......................   55
  3462.         6.7       Address-and-Control-Field-Compression ...........   57
  3463.  
  3464.  
  3465.  
  3466.  
  3467. Simpson                  expires in six months                [Page iii]
  3468. DRAFT                   Point-to-Point Protocol                July 1993
  3469.  
  3470.  
  3471.      APPENDICES ...................................................   58
  3472.  
  3473.      A.     LCP Recommended Options ...............................   58
  3474.  
  3475.      SECURITY CONSIDERATIONS ......................................   59
  3476.  
  3477.      REFERENCES ...................................................   59
  3478.  
  3479.      ACKNOWLEDGEMENTS .............................................   59
  3480.  
  3481.      CHAIR'S ADDRESS ..............................................   59
  3482.  
  3483.      AUTHOR'S ADDRESS .............................................   60
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.  
  3522.